body.auth-page {
  --auth-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --auth-font-display: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  font-family: var(--auth-font-sans);
  color: #edf4ff;
  background:
    radial-gradient(circle at top left, rgba(242, 193, 78, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 122, 24, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(20, 93, 255, 0.12), transparent 28%),
    #07111f;
  overflow-x: hidden;
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: -16% auto auto -10%;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.12), rgba(242, 193, 78, 0.02) 52%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
  animation: authGlow 18s ease-in-out infinite;
}

body.auth-page::after {
  content: "";
  position: fixed;
  inset: auto -14% -18% auto;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.12), rgba(255, 122, 24, 0.02) 58%, transparent 74%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;
  animation: authGlow 22s ease-in-out infinite reverse;
}

body.auth-page :is(i.fa-solid, i.fa-regular, i.fa-brands, i.bi) {
  display: inline-block;
  background: linear-gradient(135deg, #b8860b 0%, #f2c14e 40%, #ffbe45 72%, #ff7a18 100%) !important;
  background-image: linear-gradient(135deg, #b8860b 0%, #f2c14e 40%, #ffbe45 72%, #ff7a18 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  filter: drop-shadow(0 1px 2px rgba(10, 23, 48, 0.2));
}

.auth-shell {
  width: min(1180px, calc(100vw - 32px));
  min-height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(242, 193, 78, 0.18);
  background: rgba(2, 6, 23, 0.82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.auth-hero {
  position: relative;
  padding: 44px;
  background:
    linear-gradient(180deg, rgba(9, 18, 36, 0.98), rgba(17, 28, 51, 0.97)),
    linear-gradient(135deg, rgba(242, 193, 78, 0.18), rgba(255, 122, 24, 0.1));
  color: #edf4ff;
  isolation: isolate;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: -18% -12% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 193, 78, 0.18), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #b8860b, #f2c14e, #ffbe45, #ff7a18);
  opacity: 0.95;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.auth-logo {
  width: 74px;
  height: 74px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

/* The AI4OPS mark is a landscape logo. Give it a landscape frame on the
   signup hero so it remains legible beside the long CitizenshipAI title. */
.auth-page-signup .auth-logo {
  width: clamp(168px, 15vw, 218px);
  height: clamp(62px, 5.4vw, 82px);
  box-sizing: border-box;
  padding: 7px 16px;
  border: 3px solid #f2d36d;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.auth-logo-login {
  width: 170px;
  height: 58px;
  object-fit: contain;
  border: 2px solid rgba(242, 193, 78, 0.5);
  border-radius: 999px;
  background: #fff;
  padding: 6px 14px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
}

.auth-brand-copy {
  min-width: 0;
}

.auth-kicker {
  font-size: clamp(0.68rem, 0.3vw + 0.6rem, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 248, 230, 0.72);
  margin-bottom: 4px;
}

.auth-brand-title {
  font-family: var(--auth-font-display);
  font-size: clamp(1.05rem, 0.55vw + 0.9rem, 1.3rem);
  font-weight: 900;
  line-height: 1.05;
  color: #f2c14e;
}

.auth-brand-title small {
  display: block;
  margin-top: 5px;
  color: rgba(237, 244, 255, 0.72);
  font: 600 0.7rem/1.35 "Inter", sans-serif;
  letter-spacing: 0.035em;
}

/* Descriptive practice identity only; this is not the official USCIS seal. */
.uscis-practice-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: fit-content;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(242, 193, 78, 0.38);
  border-radius: 999px;
  color: #ffe49a;
  background: rgba(242, 193, 78, 0.1);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

.uscis-practice-badge i {
  font-size: 0.72rem;
}

.uscis-practice-badge small {
  padding-left: 5px;
  border-left: 1px solid rgba(242, 193, 78, 0.34);
  color: rgba(237, 244, 255, 0.74);
  font-size: 0.62rem;
  font-weight: 650;
  letter-spacing: 0;
}

.auth-title {
  font-family: var(--auth-font-display);
  font-size: clamp(1.85rem, 2.6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 10px 0 16px;
}

.auth-title span {
  color: #f2c14e;
}

.auth-copy {
  max-width: 58ch;
  color: rgba(237, 244, 255, 0.82);
  font-size: clamp(0.94rem, 0.25vw + 0.84rem, 1rem);
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.feature-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(242, 193, 78, 0.12);
  min-height: 104px;
  backdrop-filter: blur(8px);
}

.feature-card i {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card .feature-title {
  font-weight: 800;
  margin-bottom: 6px;
}

.feature-card .feature-copy {
  color: rgba(237, 244, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.45;
}

.auth-panel {
  padding: 44px;
  background: rgba(247, 249, 252, 0.97);
  color: #0f1f35;
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(242, 193, 78, 0.16);
  color: #8a6510;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.panel-title {
  font-family: var(--auth-font-display);
  font-size: clamp(1.7rem, 1.2vw + 1.3rem, 2.15rem);
  font-weight: 900;
  margin: 14px 0 8px;
  color: #0f1f35;
}

.panel-subtitle {
  color: #65758f;
  font-size: clamp(0.95rem, 0.25vw + 0.88rem, 1.05rem);
  line-height: 1.65;
  margin-bottom: 26px;
}

.auth-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: #71809b;
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.auth-legal-links a {
  color: #4868c9;
  font-weight: 650;
  text-decoration: none;
}

.auth-legal-links a:hover,
.auth-legal-links a:focus-visible {
  color: #2449ad;
  text-decoration: underline;
}

.auth-panel .form-label {
  font-size: clamp(0.88rem, 0.18vw + 0.83rem, 0.98rem);
  font-weight: 650;
  letter-spacing: 0.005em;
}

.form-control,
.form-select {
  min-height: 52px;
  font-family: var(--auth-font-sans);
  font-size: clamp(0.95rem, 0.2vw + 0.9rem, 1.05rem);
  border-radius: 14px;
  border-color: rgba(15, 31, 53, 0.12);
  box-shadow: none;
}

.password-field {
  position: relative;
}

/* Native fallback plus an icon-supported list; native values own validation. */
.auth-mfa-select { position: relative; }
.auth-mfa-select > .form-select { padding-inline-start: 3rem; }
.auth-mfa-select-icon {
  position: absolute;
  inset-inline-start: 1rem;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.25rem;
  font-size: 1.15rem;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-mfa-select [hidden], .auth-mfa-options[hidden] { display: none !important; }
.auth-mfa-select.is-enhanced > select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}
.auth-mfa-select > .auth-mfa-trigger {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-inline-start: 1rem;
  text-align: start;
  white-space: normal;
  cursor: pointer;
}
.auth-mfa-trigger > i, .auth-mfa-option > i:first-child {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  text-align: center;
  font-size: 1.15rem;
}
.auth-mfa-trigger > span, .auth-mfa-option > span { flex: 1; min-width: 0; line-height: 1.4; }
.auth-mfa-trigger[aria-invalid="true"] { border-color: #b42332; }
.auth-mfa-options {
  position: fixed;
  z-index: 1200;
  box-sizing: border-box;
  margin: 0;
  padding: .35rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  color: #0f1f35;
  background: #fff;
  border: 1px solid rgba(242, 193, 78, .8);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(10, 23, 48, .2);
  font-family: var(--auth-font-sans);
  font-size: clamp(.95rem, .2vw + .9rem, 1.05rem);
}
.auth-mfa-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 48px;
  padding: .65rem .75rem;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
}
.auth-mfa-option:hover, .auth-mfa-option.is-active { background: #fff7de; border-color: #edce73; }
.auth-mfa-option[aria-selected="true"] { background: #f4f7fc; font-weight: 600; }
.auth-mfa-option.is-active { outline: 2px solid #c89828; outline-offset: -2px; }
.auth-mfa-check { visibility: hidden; font-size: .85rem; }
.auth-mfa-option[aria-selected="true"] .auth-mfa-check { visibility: visible; }

.password-field .form-control {
  padding-right: 3.75rem;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a6510;
  transform: translateY(-50%);
  padding: 0;
  z-index: 2;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  background: rgba(242, 193, 78, 0.15);
  color: #0f1f35;
  outline: none;
  box-shadow: none;
}

.password-toggle-btn:focus-visible {
  box-shadow: 0 0 0 0.18rem rgba(242, 193, 78, 0.22);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(242, 193, 78, 0.85);
  box-shadow: 0 0 0 0.24rem rgba(242, 193, 78, 0.18);
}

.auth-shell .btn-primary {
  min-height: 52px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  font-size: clamp(0.95rem, 0.22vw + 0.9rem, 1.05rem);
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #b8860b, #f2c14e 45%, #ffbe45 75%, #ff7a18);
  box-shadow: 0 18px 30px rgba(184, 134, 11, 0.22);
}

.auth-shell .btn-primary:hover,
.auth-shell .btn-primary:focus {
  color: #fff;
  filter: brightness(1.02);
}

.legal-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.2rem 0;
  color: #53627b;
  font-size: 0.84rem;
  line-height: 1.5;
  cursor: pointer;
}

.legal-consent input {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin-top: 0.13rem;
  accent-color: #b8860b;
}

.legal-consent a {
  color: #345ac4;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-consent a:hover,
.legal-consent a:focus-visible { color: #1e3f9f; }

/* Keep the longer sign-up form compact and readable on one screen. */
.auth-page-signup .auth-shell {
  width: min(1100px, calc(100vw - 32px));
}

.auth-page-signup .auth-hero,
.auth-page-signup .auth-panel {
  padding: 32px 36px;
}

.auth-page-signup .auth-title {
  font-family: var(--auth-font-sans);
  font-size: clamp(1.75rem, 2.25vw, 2.42rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.04;
  white-space: nowrap;
}

.auth-page-signup .auth-brand-title,
.auth-page-signup .panel-title {
  font-family: var(--auth-font-sans);
  letter-spacing: -0.025em;
}

.auth-page-signup .panel-title {
  font-size: clamp(1.55rem, 1vw + 1.2rem, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
}

/* Keep verification calm and readable: the OTP screen should not use an
   oversized marketing heading when the user is completing secure sign-in. */
.auth-page-verify .auth-logo {
  width: 170px;
  height: 58px;
  box-sizing: border-box;
  padding: 6px 14px;
  border: 2px solid rgba(242, 193, 78, 0.5);
  border-radius: 999px;
  background: #fff;
}

.auth-page-verify .auth-kicker {
  color: rgba(237, 244, 255, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.auth-page-verify .auth-brand-title {
  max-width: 390px;
  color: rgba(237, 244, 255, 0.92);
  font-family: var(--auth-font-sans);
  font-size: clamp(1rem, 0.45vw + 0.88rem, 1.2rem);
  font-weight: 750;
  line-height: 1.25;
}

.auth-page-verify .auth-title {
  max-width: none;
  margin: 18px 0 14px;
  font-family: var(--auth-font-sans);
  font-size: clamp(2rem, 2.35vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  white-space: nowrap;
}

.auth-page-verify .auth-title span {
  color: #f2c14e;
  font-weight: 750;
}

@media (max-width: 700px) {
  .auth-page-verify .auth-title { white-space: normal; }
}

.auth-page-signup .auth-copy,
.auth-page-signup .panel-subtitle {
  font-size: clamp(0.92rem, 0.22vw + 0.86rem, 1rem);
}

.auth-page-signup .form-label {
  font-size: clamp(0.92rem, 0.18vw + 0.87rem, 1rem);
  font-weight: 750;
}

.auth-page-signup .form-control,
.auth-page-signup .form-select {
  font-size: 1rem;
  font-weight: 500;
}

.auth-page-signup .auth-shell .btn-primary {
  font-size: 1rem;
  font-weight: 800;
}

.auth-page-signup .panel-title {
  font-size: 1.75rem;
}

.auth-page-signup .form-control,
.auth-page-signup .form-select,
.auth-page-signup .auth-shell .btn-primary {
  min-height: 46px;
}

.auth-page-signup form.d-grid {
  gap: 0.75rem !important;
}

/* Two compact columns keep the sign-up fields visible together on desktop,
   while each label remains directly above its own text box. */
.signup-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 0.9rem;
  align-items: start;
}

.signup-form .form-label {
  display: block;
  margin-bottom: 0.32rem;
}

.signup-password-field .password-strength-meter {
  margin-top: 0.45rem;
  padding: 0.5rem 0.65rem;
}

.signup-password-field .password-strength-hint {
  margin-top: 0.32rem;
  font-size: 0.72rem;
  line-height: 1.3;
}

.signup-form .legal-consent,
.signup-form .signup-submit {
  grid-column: 1 / -1;
}

.signup-form .legal-consent {
  margin-top: 0.1rem;
}

@media (max-width: 700px) {
  .signup-form { grid-template-columns: 1fr; gap: 0.75rem; }
  .auth-page-signup .auth-title { white-space: normal; }
}

/* Professional, balanced login presentation. */
.auth-shell-login {
  width: min(1280px, calc(100vw - 48px));
  min-height: min(720px, calc(100vh - 48px));
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  border-radius: 24px;
}

.auth-shell-login .auth-hero {
  display: flex;
  flex-direction: column;
  padding: 36px 42px;
}

.auth-shell-login .auth-brand {
  gap: 12px;
  margin-bottom: 32px;
}

.auth-shell-login .auth-logo-login {
  width: 190px;
  height: 64px;
  border-radius: 999px;
  padding: 3px 8px;
}

.auth-shell-login .auth-brand-title {
  max-width: 420px;
  color: rgba(237, 244, 255, 0.86);
  font-size: 1rem;
  line-height: 1.3;
}

.auth-shell-login .auth-brand-title span {
  display: block;
  color: #f2c14e;
  font-size: 1.18rem;
}

.auth-shell-login .auth-brand-title small {
  font-size: 0.72rem;
}

.auth-title-eyebrow {
  display: block;
  margin-bottom: 10px;
  color: rgba(237, 244, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.auth-shell-login .auth-title {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: clamp(1.95rem, 2.75vw, 2.85rem);
  line-height: 1.08;
}

.auth-shell-login .auth-title-purpose {
  display: block;
  margin-top: .35em;
  font-size: .62em;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.auth-shell-login .auth-copy {
  max-width: 58ch;
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.auth-shell-login .feature-grid {
  gap: 10px;
  margin-top: 26px;
}

.auth-shell-login .feature-card {
  min-height: 0;
  padding: 14px;
  border-radius: 14px;
}

.auth-shell-login .feature-card i {
  margin-bottom: 7px;
  font-size: 1rem;
}

.auth-shell-login .feature-card .feature-title {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.auth-shell-login .feature-card .feature-copy {
  font-size: 0.82rem;
  line-height: 1.42;
}

.auth-shell-login .demo-box {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.86rem;
}

/* Shared navigation for sign-in and sign-up; never submits either form. */
.auth-panel .auth-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.auth-panel-toolbar .panel-chip { margin: 0; }
.auth-panel .auth-home-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid #dec98a;
  border-radius: 999px;
  background: #fffaf0;
  color: #775710;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.auth-panel .auth-home-link:hover {
  background: #fff1c8;
  border-color: #b98d25;
  color: #5d440b;
}
.auth-panel .auth-home-link:focus-visible {
  outline: 3px solid #a67a16;
  outline-offset: 3px;
}

.auth-shell-login .auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px clamp(32px, 4vw, 60px);
}

.auth-shell-login .auth-panel > * {
  width: min(100%, 470px);
  margin-left: auto;
  margin-right: auto;
}

.auth-shell-login .panel-chip {
  padding: 6px 10px;
  font-size: 0.72rem;
}

.auth-shell-login .panel-title {
  margin: 12px auto 6px;
  font-size: 1.75rem;
}

.auth-shell-login .panel-subtitle {
  margin-bottom: 22px;
  font-size: 0.94rem;
  line-height: 1.55;
}

.auth-shell-login .alert {
  margin-bottom: 18px;
  border-radius: 12px;
}

.auth-shell-login .form-control {
  min-height: 48px;
  border-radius: 12px;
}

.auth-shell-login .form-label {
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.auth-shell-login .btn-primary {
  min-height: 48px;
  border-radius: 12px;
}

.auth-shell-login .auth-links {
  justify-content: space-between;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 0.9rem;
}

.auth-shell-login .auth-note {
  padding-top: 14px;
  border-top: 1px solid rgba(15, 31, 53, 0.1);
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-shell .btn-outline-info {
  min-height: 52px;
  border-radius: 14px;
  border-color: rgba(184, 134, 11, 0.35);
  color: #8a6510;
  font-weight: 800;
}

.auth-shell .btn-outline-info:hover,
.auth-shell .btn-outline-info:focus {
  background: rgba(242, 193, 78, 0.14);
  color: #8a6510;
  border-color: rgba(184, 134, 11, 0.5);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.auth-links a,
.helper-link {
  color: #8a6510;
  text-decoration: none;
  font-weight: 700;
}

.auth-links a:hover,
.helper-link:hover {
  text-decoration: underline;
}

.back-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(138, 101, 16, 0.38);
  border-radius: 0.7rem;
  color: #75570d;
  background: #fffdf6;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.back-login-button:hover,
.back-login-button:focus-visible {
  border-color: #b8860b;
  color: #4e3a08;
  background: #fff7df;
  text-decoration: none;
  transform: translateX(-2px);
}

.back-login-button:focus-visible {
  outline: 3px solid rgba(242, 193, 78, 0.3);
  outline-offset: 2px;
}

.back-login-button i {
  font-size: 0.78rem;
}

.auth-alert-soft {
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(184, 134, 11, 0.2);
  background: rgba(255, 247, 230, 0.92);
  color: #7a5a0f;
  font-weight: 700;
  line-height: 1.45;
}

.demo-box,
.token-box,
.dev-pin {
  margin-top: 24px;
  padding: 18px;
  border-radius: 18px;
  background: #fff7e6;
  border: 1px solid rgba(242, 193, 78, 0.28);
  color: #0f1f35;
}

.token-box {
  word-break: break-all;
}

.auth-note {
  margin-top: 16px;
  font-size: 0.92rem;
  color: #65758f;
}

.lockout-badge {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(184, 134, 11, 0.22);
  background: linear-gradient(135deg, rgba(242, 193, 78, 0.18), rgba(255, 122, 24, 0.1));
  color: #8a6510;
  font-weight: 700;
  line-height: 1.5;
}

.otp-attempt-lockout {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(185, 65, 72, 0.32);
  border-radius: 16px;
  background: rgba(254, 226, 226, 0.86);
  color: #8b2635;
  font-size: 0.92rem;
  line-height: 1.5;
}

.pin-card {
  width: min(760px, calc(100vw - 32px));
  padding: 44px;
  border-radius: 30px;
  border: 1px solid rgba(242, 193, 78, 0.18);
  background: rgba(247, 249, 252, 0.97);
  color: #0f1f35;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.pin-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 10px;
  color: #0f1f35;
}

.pin-subtitle {
  color: #65758f;
  line-height: 1.65;
}

.pin-card .form-control {
  min-height: 52px;
  border-radius: 14px;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  text-align: center;
}

.pin-card .btn-primary {
  min-height: 52px;
}

.pin-card .btn-outline-info {
  min-height: 52px;
}

.dev-pin {
  word-break: break-word;
}

@keyframes authGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate3d(24px, -16px, 0) scale(1.04); opacity: 1; }
}

@media (max-width: 980px) {
  body.auth-page {
    padding: 16px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-hero,
  .auth-panel {
    padding: 28px;
  }

  .auth-logo {
    width: 74px;
    height: 74px;
  }

  .auth-page-signup .auth-logo {
    width: 168px;
    height: 62px;
    padding: 6px 12px;
    border-width: 2px;
  }

  .auth-logo-login {
    width: 150px;
    height: 54px;
    border-radius: 999px;
    padding: 3px 7px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .auth-title {
    font-size: clamp(1.75rem, 6.2vw, 2.45rem);
  }

  .pin-card {
    padding: 28px;
  }

  .auth-shell-login {
    width: min(720px, calc(100vw - 32px));
    grid-template-columns: 1fr;
  }

  .auth-shell-login .auth-hero,
  .auth-shell-login .auth-panel {
    padding: 28px;
  }

  .auth-shell-login .demo-box {
    margin-top: 22px;
  }
}
