/**
 * Auth screens — Tronix navy stage + gold CTAs.
 */

body.page-auth {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(46, 69, 150, 0.35), transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(245, 215, 110, 0.08), transparent 40%),
    #0B1229;
  display: flex;
  flex-direction: column;
  color: #E8EDF8;
}
body.page-auth .site-header,
body.page-auth .site-footer { display: none !important; }

body.page-auth .auth-main {
  flex: 1 1 auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: safe center;
  justify-content: safe center;
  padding: calc(clamp(1rem, 3vw, 2rem) + var(--safe-top, 0px)) calc(0.85rem + var(--safe-right, 0px)) calc(clamp(1rem, 3vw, 2rem) + var(--safe-bottom, 0px)) calc(0.85rem + var(--safe-left, 0px));
  box-sizing: border-box;
}
body.page-auth .auth-flash {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(420px, calc(100% - 2rem));
  max-width: none;
  margin: 0;
  padding: 0;
}

.auth-card {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  background: #121C3D;
  flex-shrink: 0;
}

.auth-card__brand {
  position: relative;
  isolation: isolate;
  color: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.auth-card__brand-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.auth-card__brand-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(165deg, rgba(11, 18, 41, 0.55) 0%, rgba(11, 18, 41, 0.88) 55%, rgba(11, 18, 41, 0.96) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(245, 215, 110, 0.18), transparent 50%);
}
.auth-card__brand-inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-height: 100%;
  box-sizing: border-box;
}
.auth-card__brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #F5D76E !important;
  font-family: var(--dz-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none !important;
  width: fit-content;
}
.auth-card__brand-logo span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #F5D76E;
  color: #0B1229;
  font-size: 0.85rem;
  font-family: var(--dz-sans);
  font-weight: 700;
}
.auth-card__eyebrow {
  display: inline-flex;
  margin: 0 0 0.55rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 215, 110, 0.14);
  border: 1px solid rgba(245, 215, 110, 0.35);
  color: #F5D76E;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-card__brand-copy h2 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-family: var(--dz-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 12ch;
}
.auth-card__brand-copy p {
  margin: 0;
  color: rgba(232, 237, 248, 0.82);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 28ch;
}
.auth-card__points {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.auth-card__points li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: rgba(232, 237, 248, 0.9);
  line-height: 1.4;
  font-weight: 600;
}
.auth-card__points li i {
  color: #F5D76E;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.auth-card__form {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  box-sizing: border-box;
  background: #121C3D;
}
.auth-card__intro h1 {
  margin: 0 0 0.35rem;
  font-family: var(--dz-display);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  color: #fff;
  letter-spacing: -0.02em;
}
.auth-card__form .auth-sub {
  margin: 0;
  color: rgba(232, 237, 248, 0.68);
  font-size: 0.95rem;
}

.auth-card .auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  width: 100%;
  margin: 0;
}
.auth-card .auth-form > label,
.auth-card .auth-form .form-grid-2 {
  width: 100%;
  margin: 0;
}
.auth-card .auth-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(232, 237, 248, 0.78);
  margin: 0;
}
.auth-card .auth-form .muted {
  color: rgba(232, 237, 248, 0.5) !important;
  font-weight: 500;
}
.auth-card .auth-form .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
}
.auth-card .auth-form .form-grid-2 > label {
  min-width: 0;
  width: 100%;
}

.auth-card .auth-form input[type="email"],
.auth-card .auth-form input[type="password"],
.auth-card .auth-form input[type="text"],
.auth-card .auth-form input[type="tel"],
.auth-card .auth-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  min-height: 52px;
  padding: 0 16px;
  font-size: 16px;
  line-height: 1.4;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-card .auth-form input::placeholder {
  color: rgba(232, 237, 248, 0.4);
}
.auth-card .auth-form input:focus {
  outline: none;
  border-color: rgba(245, 215, 110, 0.65);
  box-shadow: 0 0 0 3px rgba(245, 215, 110, 0.18);
}

.auth-card .field-with-icon {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}
.auth-card .field-with-icon > i {
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: rgba(232, 237, 248, 0.55);
  pointer-events: none;
  font-size: 1rem;
  line-height: 1;
  z-index: 1;
}
.auth-card .field-with-icon input {
  width: 100%;
  margin: 0 !important;
  padding-left: 48px !important;
  padding-right: 14px;
}

.auth-card .auth-form__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  font-size: 0.88rem;
  margin: 0;
}
.auth-card .auth-form__row a {
  white-space: nowrap;
  flex-shrink: 0;
  color: #F5D76E !important;
  font-weight: 700;
  text-decoration: none !important;
}
.auth-card .auth-form__row a:hover { text-decoration: underline !important; }

.auth-card .auth-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
  font-weight: 500 !important;
  font-size: 0.9rem;
  color: rgba(232, 237, 248, 0.78) !important;
  line-height: 1.45;
}
.auth-card .auth-check a {
  color: #F5D76E !important;
  font-weight: 700;
}
.auth-card .auth-check input[type="checkbox"] {
  width: 18px !important;
  height: 18px;
  min-height: 0;
  margin: 2px 0 0 !important;
  padding: 0;
  flex-shrink: 0;
  accent-color: #F5D76E;
}

.auth-card .auth-submit {
  width: 100%;
  min-height: 54px;
  margin: 0;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  font-family: var(--dz-display);
  font-weight: 700;
  border: none;
}
.auth-card .btn-primary.auth-submit {
  background: #F5D76E !important;
  color: #0B1229 !important;
  box-shadow: 0 10px 28px rgba(245, 215, 110, 0.25);
}
.auth-card .btn-primary.auth-submit:hover {
  background: #FFE8A3 !important;
  color: #0B1229 !important;
}
.auth-card .btn-outline.auth-submit {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
}
.auth-card .auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  color: rgba(232, 237, 248, 0.45);
  font-size: 12px;
  margin: 0;
}
.auth-card .auth-divider::before,
.auth-card .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.auth-card .auth-footer-link {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(232, 237, 248, 0.65);
  text-align: center;
  width: 100%;
}
.auth-card .auth-footer-link a {
  color: #F5D76E !important;
  font-weight: 700;
  text-decoration: none !important;
}
.auth-card .auth-footer-link a:hover { text-decoration: underline !important; }

.auth-card .auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 215, 110, 0.12);
  color: #F5D76E;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.auth-card .seg-tabs.auth-seg {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  gap: 4px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
}
.auth-card .seg-tabs.auth-seg a {
  flex: 1;
  text-align: center;
  padding: 11px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  color: rgba(232, 237, 248, 0.7);
  text-decoration: none !important;
}
.auth-card .seg-tabs.auth-seg a.is-active,
.auth-card .seg-tabs.auth-seg a[aria-selected="true"] {
  background: #F5D76E;
  color: #0B1229;
}

.auth-card .pw-meter {
  margin-top: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.auth-card .pw-meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: #F5D76E;
  transition: width 0.2s ease;
}
.auth-card .pw-hint { margin: 0; color: rgba(232, 237, 248, 0.5); }

@media (max-width: 900px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-card__brand { min-height: 220px; }
  .auth-card__brand-copy h2 { max-width: none; }
  .auth-card__brand-copy p { max-width: none; }
  .auth-card__points { display: none; }
}
@media (max-width: 560px) {
  .auth-card { border-radius: 22px; }
  .auth-card .auth-form .form-grid-2 { grid-template-columns: 1fr; }
}

.auth-screen {
  width: min(980px, 100%);
  margin: 0 auto;
}
