/* ═══════════════════════════════════════════════════════════
   auth-shared.css
   Shared styles for OtpLogin, ForgotPassword, ResetPassword
   Mirrors the design tokens from AuthPage.cshtml exactly.
═══════════════════════════════════════════════════════════ */

:root {
  --gov-navy:       #0A1F44;
  --gov-blue:       #1A56A0;
  --gov-blue-mid:   #2176C7;
  --gov-blue-light: #EBF3FB;
  --gov-burgundy:   #6B1530;
  --gov-burg-mid:   #8E1D3E;
  --gov-burg-acc:   #B02250;
  --gov-black:      #0D0D0D;
  --gov-white:      #FFFFFF;
  --gov-offwhite:   #F4F6FB;
  --gov-grey:       #6C757D;
  --gov-border:     #D0D9E8;
}

/*NAVBAR*/
.gov-navbar {
    background: black; 

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* border-bottom: 1px solid rgba(255, 255, 255, 0.12); */

    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner a.nav-item {
      color: White; text-decoration: none;
      font-size: 0.9rem; font-weight: 500;
      padding: 13px 16px;
      display: flex; align-items: center; gap: 5px;
      border-bottom: 3px solid transparent;
      transition: all .2s;
      position: relative;
    }

/* ── AUTH BACKGROUND ── */
.auth-bg {
  min-height: calc(100vh - 130px); /* accounts for header + navbar */
  background: linear-gradient(white, whitesmoke, darkgrey, black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  position: relative;
  overflow: hidden;
}

/* Decorative rings (match AuthPage) */
.auth-bg::before,
.auth-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-bg::before {
  width: 320px; height: 320px;
  border: 1px solid rgba(10, 31, 68, 0.06);
  top: -80px; left: -80px;
}
.auth-bg::after {
  width: 200px; height: 200px;
  border: 1px solid rgba(107, 21, 48, 0.06);
  bottom: -50px; right: -50px;
}

/* ── CARD ── */
.auth-card {
  background: var(--gov-white);
  border: 1px solid var(--gov-border);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(10, 31, 68, 0.13);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
  position: relative;
  animation: cardIn .45s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* ── ACCENT BAR ── */
.card-accent {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--gov-navy)    0%,
    var(--gov-blue-mid) 50%,
    var(--gov-burg-acc) 100%
  );
}

/* ── CARD HEADER ── */
.card-header {
  padding: 26px 32px 18px;
  border-bottom: 1px solid var(--gov-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.card-header-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
/* Icon colour variants */
.card-header-icon.blue { background: var(--gov-blue-light);  color: var(--gov-blue); }
.card-header-icon.navy { background: #e8edf5;                color: var(--gov-navy); }
.card-header-icon.burg { background: #f7e8ed;                color: var(--gov-burgundy); }

.card-header-text h2 {
  font-family: 'Tiro Devanagari Latin', serif;
  font-size: 1.333rem;
  color: var(--gov-navy);
  margin: 0 0 2px;
  font-weight: 700;
}
.card-header-text p {
  font-size: 0.833rem;
  color: var(--gov-grey);
  margin: 0;
}

/* ── CARD BODY ── */
.card-body {
  padding: 26px 32px;
}

/* ── FORM GROUPS ── */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.833rem;
  font-weight: 600;
  color: var(--gov-navy);
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.form-group label .req { color: var(--gov-burg-acc); margin-left: 2px; }

/* ── INPUT WRAP ── */
.input-wrap { position: relative; }

.input-wrap i.field-icon {
  position: absolute;
  left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--gov-grey);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid var(--gov-border);
  border-radius: 6px;
  font-size: 0.933rem;
  font-family: 'Noto Sans', sans-serif;
  color: var(--gov-black);
  background: var(--gov-white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input-wrap input:focus {
  border-color: var(--gov-blue-mid);
  box-shadow: 0 0 0 3px rgba(33, 118, 199, .12);
}
.input-wrap input::placeholder { color: #aab4c4; }

/* ── EYE TOGGLE (Reset Password) ── */
.toggle-eye {
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--gov-grey); cursor: pointer;
  font-size: 1.067rem; padding: 0;
  transition: color .2s;
}
.toggle-eye:hover { color: var(--gov-navy); }

/* ── SUBMIT BUTTON ── */
.btn-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--gov-navy) 0%, var(--gov-blue-mid) 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.967rem;
  font-weight: 700;
  font-family: 'Noto Sans', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .25s;
  letter-spacing: .3px;
  text-decoration: none; /* for <a> used as button */
}
.btn-submit:hover {
  box-shadow: 0 6px 20px rgba(10, 31, 68, .25);
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ── OTP INPUT (6-digit) ── */
.otp-digits {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 4px 0 6px;
}
.otp-digits input {
  width: 46px; height: 52px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  border: 1.5px solid var(--gov-border);
  border-radius: 8px;
  color: var(--gov-navy);
  background: var(--gov-offwhite);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  /* no left padding override needed — no field-icon inside */
  padding: 0;
}
.otp-digits input:focus {
  border-color: var(--gov-blue-mid);
  box-shadow: 0 0 0 3px rgba(33, 118, 199, .12);
  background: var(--gov-white);
}

/* ── DIVIDER ── */
.otp-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px;
  font-size: 0.8rem; color: var(--gov-grey);
}
.otp-divider::before, .otp-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gov-border);
}

/* ── INFO / WARNING BADGE ── */
.info-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--gov-blue-light);
  border: 1px solid rgba(33, 118, 199, .2);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.833rem;
  color: var(--gov-navy);
  margin-bottom: 18px;
}
.info-badge i { color: var(--gov-blue); margin-top: 2px; flex-shrink: 0; }

/* ── RESEND LINK ── */
.resend-row {
  text-align: center;
  font-size: 0.8rem;
  color: var(--gov-grey);
  margin-top: 14px;
}
.resend-row a {
  color: var(--gov-blue);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.resend-row a:hover { text-decoration: underline; }
.resend-row a.disabled {
  color: var(--gov-grey);
  pointer-events: none;
  cursor: default;
}

/* ── COUNTDOWN TIMER ── */
#otpTimer, #fpTimer {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--gov-burg-acc);
}

/* ── PASSWORD STRENGTH (Reset page) ── */
.strength-meter { margin-top: 8px; }
.strength-bars  { display: flex; gap: 4px; margin-bottom: 4px; }
.strength-bar {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--gov-border); transition: background .3s;
}
.strength-bar.weak   { background: #e53935; }
.strength-bar.medium { background: #fb8c00; }
.strength-bar.strong { background: #2e7d32; }
.strength-text { font-size: 0.733rem; color: var(--gov-grey); }

/* ── SECURITY BADGES ── */
.security-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 32px 16px;
  flex-wrap: wrap;
}
.sec-badge {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.733rem; color: var(--gov-grey);
}
.sec-badge i { font-size: 0.867rem; color: #2e7d32; }

/* ── CARD FOOTER ── */
.card-footer-links {
  padding: 14px 32px 20px;
  border-top: 1px solid var(--gov-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.867rem;
  color: var(--gov-grey);
  flex-wrap: wrap;
  text-align: center;
}
.card-footer-links a {
  color: var(--gov-blue);
  text-decoration: none;
  font-weight: 600;
}
.card-footer-links a:hover { text-decoration: underline; }

/* ── STEP INDICATOR (ForgotPassword flow) ── */
.flow-steps {
  display: flex;
  align-items: center;
  padding: 0 32px 18px;
}
.flow-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600;
}
.flow-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  background: var(--gov-border); color: var(--gov-grey); flex-shrink: 0;
}
.flow-step.active .flow-step-num { background: var(--gov-blue);  color: #fff; }
.flow-step.done   .flow-step-num { background: #2e7d32;           color: #fff; }
.flow-step-lbl { color: var(--gov-grey); }
.flow-step.active .flow-step-lbl { color: var(--gov-blue); }
.flow-step-line {
  flex: 1; height: 2px;
  background: var(--gov-border); margin: 0 8px;
}

/* ── MOBILE ── */
@media (max-width: 500px) {
  .card-header,
  .card-body,
  .card-footer-links,
  .flow-steps,
  .security-row { padding-left: 18px; padding-right: 18px; }

  .otp-digits input { width: 40px; height: 46px; font-size: 1.2rem; }
}
