/* =====================================================================
   NEXT GRADE CAPITAL — SHARED BRAND STYLES (Auth Pages)
   Matches colors/fonts from the public landing page (index.html)
===================================================================== */

:root {
  --ngc-navy: #0A1F44;
  --ngc-blue: #1A56DB;
  --ngc-white: #FFFFFF;
  --ngc-gold: #C9A84C;
  --ngc-light-blue: #DBAFE6;
  --ngc-slate-dark: #1E293B;
  --ngc-slate-mid: #475569;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--ngc-navy);
  color: var(--ngc-slate-dark);
  overflow-x: hidden;
}

a { text-decoration: none; }

/* ---------- AUTH PAGE SHELL ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 30px 16px;
  background: var(--ngc-navy);
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(26, 86, 219, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(201, 168, 76, 0.08) 0%, transparent 55%),
    var(--ngc-navy);
}

.auth-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ---------- GLASSMORPHISM CARD ---------- */
.auth-card-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
}

.auth-card-wrap.wide {
  max-width: 620px;
}

.auth-logo {
  display: block;
  margin: 0 auto 26px;
  height: 40px;
  width: auto;
}

.auth-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 38px 34px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  color: var(--ngc-white);
}

.auth-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ngc-white);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  line-height: 1.6;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 86, 219, 0.16);
  border: 1px solid rgba(26, 86, 219, 0.3);
  color: var(--ngc-white);
  font-size: 0.7rem;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
  font-weight: 700;
}

/* ---------- FORM CONTROLS ---------- */
.form-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ngc-white);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
}

.form-control::placeholder { color: rgba(255, 255, 255, 0.4); }

.form-control:focus,
.form-select:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--ngc-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.25);
  color: var(--ngc-white);
}

.form-select option { color: #111; }

.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-right: 44px; }
.input-icon-wrap .toggle-visibility {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 4px;
}
.input-icon-wrap .toggle-visibility:hover { color: var(--ngc-white); }

.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.form-check-input:checked {
  background-color: var(--ngc-blue);
  border-color: var(--ngc-blue);
}
.form-check-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.form-text-link {
  color: var(--ngc-gold);
  font-weight: 600;
  font-size: 0.85rem;
}
.form-text-link:hover { color: #e0c674; text-decoration: underline; }

.field-error {
  color: #ff8585;
  font-size: 0.78rem;
  margin-top: 5px;
  display: block;
}

.alert-ngc {
  border-radius: 10px;
  font-size: 0.85rem;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-ngc.success { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.35); color: #86efac; }
.alert-ngc.error   { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.35); color: #fca5a5; }
.alert-ngc.info    { background: rgba(26, 86, 219, 0.12); border-color: rgba(26, 86, 219, 0.35); color: #93c5fd; }

/* ---------- PASSWORD STRENGTH METER ---------- */
.pw-strength-bar {
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  margin-top: 8px;
}
.pw-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.25s ease, background 0.25s ease;
}
.pw-strength-label {
  font-size: 0.74rem;
  margin-top: 5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- BUTTONS ---------- */
.btn-ngc-primary {
  background: var(--ngc-blue);
  color: var(--ngc-white);
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(26, 86, 219, 0.35);
}
.btn-ngc-primary:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(26, 86, 219, 0.45); color: var(--ngc-white); }
.btn-ngc-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ngc-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--ngc-white);
  border-radius: 10px;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 0.92rem;
  width: 100%;
  transition: all 0.2s;
}
.btn-ngc-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--ngc-gold); color: var(--ngc-gold); }

/* ---------- OTP / CODE INPUT ---------- */
.otp-wrap { display: flex; gap: 10px; justify-content: center; margin: 6px 0 4px; }
.otp-input {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ngc-white);
}
.otp-input:focus { border-color: var(--ngc-blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.25); outline: none; }

/* ---------- SUCCESS / EMPTY STATE ICON ---------- */
.state-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}
.state-icon-circle.success { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.state-icon-circle.info    { background: rgba(26, 86, 219, 0.15); color: #60a5fa; }
.state-icon-circle.gold    { background: rgba(201, 168, 76, 0.18); color: var(--ngc-gold); }

/* ---------- MISC ---------- */
.divider-text {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  margin: 22px 0 16px;
  position: relative;
}

.back-to-home {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.back-to-home:hover { color: var(--ngc-white); }

.step-pills { display: flex; gap: 6px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.step-pill {
  width: 30px; height: 6px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}
.step-pill.active { background: var(--ngc-blue); }
.step-pill.done { background: var(--ngc-gold); }

@media (max-width: 480px) {
  .auth-card { padding: 30px 22px; border-radius: 16px; }
  .auth-title { font-size: 1.32rem; }
  .otp-input { width: 40px; height: 48px; font-size: 1.2rem; }
}
