/* =========================================================
   Authentication
   ========================================================= */

.za-auth-page {
  min-height: calc(100vh - 78px);
  background: #f8fafc;
}

.za-auth-layout {
  display: grid;
  min-height: calc(100vh - 78px);
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
}

.za-auth-brand {
  display: flex;
  align-items: center;
  padding: 70px clamp(40px, 7vw, 110px);
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, .18), transparent 28%),
    linear-gradient(145deg, #07142f 0%, #10295f 100%);
  color: #fff;
}

.za-auth-brand-inner {
  max-width: 620px;
}

.za-auth-kicker,
.za-auth-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.za-auth-brand h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.za-auth-brand h1 span {
  color: #60a5fa;
}

.za-auth-brand-copy {
  max-width: 560px;
  margin: 0 0 38px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.za-auth-benefits {
  display: grid;
  gap: 18px;
}

.za-auth-benefits > div {
  display: flex;
  gap: 13px;
}

.za-auth-benefits > div > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(96, 165, 250, .16);
  color: #93c5fd;
  font-weight: 900;
}

.za-auth-benefits p {
  margin: 0;
}

.za-auth-benefits strong,
.za-auth-benefits small {
  display: block;
}

.za-auth-benefits strong {
  color: #fff;
  font-size: 14px;
}

.za-auth-benefits small {
  color: #94a3b8;
  font-size: 13px;
}

.za-auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 34px;
  background: #fff;
}

.za-auth-card {
  width: min(100%, 480px);
}

.za-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 36px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.za-auth-tabs a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.za-auth-tabs a.is-active {
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  color: #0f172a;
}

.za-auth-heading {
  margin-bottom: 28px;
}

.za-auth-heading h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.za-auth-heading p {
  margin: 0;
  color: #64748b;
}

.za-auth-form {
  display: grid;
  gap: 18px;
}

.za-field {
  display: grid;
  gap: 8px;
}

.za-field label {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.za-field-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.za-field-label-row a {
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
}

.za-field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
}

.za-field input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.za-password-wrap {
  position: relative;
}

.za-password-wrap input {
  padding-right: 72px;
}

.za-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  height: 36px;
  padding: 0 9px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.za-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #64748b;
  font-size: 13px;
}

.za-primary-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.za-auth-form .za-secondary-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #2563eb;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
}

.za-auth-form .za-secondary-button:hover,
.za-auth-form .za-secondary-button:focus-visible {
  border-color: #2563eb;
  background: #eff6ff;
}

.za-auth-message {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.za-divider {
  position: relative;
  margin: 28px 0 20px;
  text-align: center;
}

.za-divider::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: #e2e8f0;
  content: "";
}

.za-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: #fff;
  color: #94a3b8;
  font-size: 12px;
}

.za-social-buttons {
  display: grid;
  gap: 11px;
}

.za-social-button {
  display: grid;
  min-height: 50px;
  grid-template-columns: 30px 1fr 30px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  text-align: center;
}

.za-social-button > span {
  justify-self: start;
  color: #2563eb;
  font-size: 18px;
  font-weight: 900;
}

.za-social-button > strong {
  justify-self: center;
}

.za-social-button.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.za-auth-bottom {
  margin: 24px 0 0;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.za-auth-bottom a {
  color: #2563eb;
  font-weight: 800;
}

@media (max-width: 980px) {
  .za-auth-layout {
    grid-template-columns: 1fr;
  }

  .za-auth-brand {
    padding: 54px 28px;
  }

  .za-auth-panel {
    padding: 44px 22px 64px;
  }
}

@media (max-width: 560px) {
  .za-auth-brand {
    padding: 40px 20px;
  }

  .za-auth-panel {
    padding: 30px 16px 50px;
  }

  .za-auth-heading h2 {
    font-size: 32px;
  }
}


/* v9.0 secure step-by-step authentication */
.za-auth-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:-8px 0 24px}
.za-auth-progress span{height:4px;border-radius:999px;background:#e2e8f0}
.za-auth-progress span.is-complete{background:#2563eb}
.za-auth-heading strong{color:#334155}
.za-auth-change-email{display:inline-flex;margin-top:16px;color:#2563eb;font-size:12px;font-weight:750;text-decoration:none}
.za-auth-resend{margin-top:12px;text-align:center}
.za-auth-resend button{padding:5px;border:0;background:transparent;color:#2563eb;cursor:pointer;font-size:12px;font-weight:750}
.za-auth-message.is-success{border-color:#a7f3d0;background:#ecfdf5;color:#047857}
.za-otp-field input{height:64px;font-size:28px;font-weight:800;letter-spacing:.28em;text-align:center;font-variant-numeric:tabular-nums}
.za-otp-field small{color:#94a3b8;font-size:11px;line-height:1.45}
.za-verified-email{display:flex;align-items:center;gap:11px;padding:12px 13px;border:1px solid #a7f3d0;border-radius:10px;background:#ecfdf5}
.za-verified-email>span{display:flex;width:30px;height:30px;flex:0 0 30px;align-items:center;justify-content:center;border-radius:50%;background:#d1fae5;color:#047857;font-weight:900}
.za-verified-email strong,.za-verified-email small{display:block}
.za-verified-email strong{color:#065f46;font-size:12px}
.za-verified-email small{margin-top:2px;color:#047857;font-size:11px}
.za-social-logo{display:flex;width:20px;height:20px;align-items:center;justify-content:center;justify-self:start}
.za-social-logo svg{display:block;width:20px;height:20px}
.za-social-button>span.za-social-logo{color:#111827;font-size:inherit}
.za-social-button.is-disabled::after{justify-self:end;color:#94a3b8;content:"Soon";font-size:10px;font-weight:700}
@media(max-width:560px){.za-otp-field input{height:60px;font-size:25px}}


/* v9.1 clean auth + six-box OTP */
.za-auth-heading-clean{margin-bottom:22px}
.za-auth-heading-clean h2{margin-bottom:6px}
.za-auth-heading-clean p{margin:0;color:#64748b}
.za-otp-field>input[type="hidden"]{display:none}
.za-otp-boxes{display:flex;gap:9px;width:100%;margin-top:2px}
.za-otp-boxes .za-otp-box{
  width:48px;height:54px;flex:0 0 48px;padding:0;
  border:1px solid #dbe3ee;border-radius:10px;background:#fff;
  color:#0f172a;font-size:18px;font-weight:700;line-height:54px;text-align:center;
  box-shadow:0 1px 2px rgba(15,23,42,.03);
  transition:border-color .15s ease,box-shadow .15s ease
}
.za-otp-boxes .za-otp-box:focus{
  outline:0;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)
}
@media(max-width:560px){
 .za-otp-boxes{gap:7px}
 .za-otp-boxes .za-otp-box{width:42px;height:50px;flex-basis:42px;font-size:17px;line-height:50px}
}
@media(max-width:390px){
 .za-otp-boxes{gap:5px}
 .za-otp-boxes .za-otp-box{width:38px;height:48px;flex-basis:38px}
}


/* v9.2 simplified login */
.za-auth-tabs{display:none!important}
.za-field-no-label{margin-top:4px}
.za-login-actions{
 display:flex;align-items:center;justify-content:space-between;
 gap:18px;margin-top:6px
}
.za-remember-inline{
 display:flex;align-items:center;gap:9px;margin:0;
 color:#64748b;font-size:14px;line-height:1.35;white-space:nowrap
}
.za-remember-inline input{width:17px;height:17px;margin:0;flex:0 0 17px}
.za-login-actions .za-next-button{width:auto;min-width:138px;margin:0}
.za-new-account{
 margin-top:13px;text-align:right;color:#64748b;font-size:14px;line-height:1.5
}
.za-new-account a{color:#2563eb;font-weight:700;text-decoration:none}
.za-new-account a:hover{text-decoration:underline}

@media(max-width:760px){
 /* Keep only the compact account intro above the form. */
 .za-auth-visual{min-height:auto!important;padding-bottom:22px!important}
 .za-auth-visual .za-auth-features,
 .za-auth-visual .za-auth-security,
 .za-auth-visual .za-auth-points,
 .za-auth-visual .za-auth-list,
 .za-auth-visual .za-auth-badges{
   display:none!important
 }
 .za-login-actions{gap:12px}
 .za-login-actions .za-next-button{min-width:124px}
}
@media(max-width:420px){
 .za-remember-inline{font-size:13px;white-space:normal}
 .za-login-actions .za-next-button{min-width:110px}
}


/* v9.2.1 restore full Next button; secondary actions below */
.za-login-under-button{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:16px;
 margin-top:13px
}
.za-login-under-button .za-remember-inline{
 margin:0;
}
.za-login-under-button .za-new-account{
 margin:0;
 text-align:right;
}
@media(max-width:420px){
 .za-login-under-button{
   gap:10px;
 }
 .za-login-under-button .za-new-account,
 .za-login-under-button .za-remember-inline{
   font-size:12px;
 }
}


/* v9.2.2 compact mobile account banner */
@media(max-width:760px){
  .za-auth-brand{
    min-height:auto !important;
    padding:30px 24px 28px !important;
  }

  .za-auth-brand-inner{
    width:100%;
    max-width:none;
    padding:0 !important;
  }

  .za-auth-brand .za-auth-kicker{
    display:block !important;
    margin:0 0 10px !important;
    font-size:11px !important;
    line-height:1.2 !important;
    letter-spacing:.18em !important;
  }

  .za-auth-brand h1{
    display:block !important;
    max-width:330px;
    margin:0 !important;
    font-size:34px !important;
    line-height:1.02 !important;
    letter-spacing:-.035em !important;
  }

  .za-auth-brand h1 br{
    display:none !important;
  }

  .za-auth-brand h1 span{
    display:inline !important;
  }

  /* Mobile banner should contain only the account label + headline. */
  .za-auth-brand-copy,
  .za-auth-benefits{
    display:none !important;
  }

  .za-auth-panel{
    padding-top:28px !important;
  }
}

/* =========================================================
   v2.0.27 — login and registration typography
   ========================================================= */
.za-auth-page{
  font-size:var(--zf-font-body,16px);
}
.za-auth-kicker,
.za-auth-eyebrow{
  font-size:var(--zf-font-tiny,13px);
}
.za-auth-brand h1{
  font-size:clamp(42px,6vw,var(--zf-font-display,68px));
}
.za-auth-brand-copy{
  font-size:var(--zf-font-large-body,18px);
}
.za-auth-benefits strong,
.za-auth-tabs a,
.za-social-button{
  font-size:var(--zf-font-compact,15px);
}
.za-social-button.is-disabled::after{
  font-size:var(--zf-font-tiny,13px);
}
.za-auth-benefits small,
.za-auth-message,
.za-divider span,
.za-auth-bottom,
.za-checkbox,
.za-remember-inline,
.za-new-account,
.za-auth-change-email,
.za-auth-resend button,
.za-otp-field small,
.za-verified-email strong,
.za-verified-email small{
  font-size:var(--zf-font-small,14px);
}
.za-auth-heading h2{
  font-size:var(--zf-font-section,40px);
}
.za-auth-heading p{
  font-size:var(--zf-font-body,16px);
}
.za-field label{
  font-size:var(--zf-font-form-label,15px);
}
.za-field-label-row a,
.za-password-toggle{
  font-size:var(--zf-font-small,14px);
}
.za-field input{
  font-size:var(--zf-font-body,16px);
}
.za-primary-button,
.za-auth-form .za-secondary-button{
  font-size:var(--zf-font-button,15px);
}
@media(max-width:760px){
  .za-auth-brand h1{
    font-size:min(var(--zf-font-display,68px),34px)!important;
  }
  .za-auth-brand .za-auth-kicker{
    font-size:var(--zf-font-tiny,13px)!important;
  }
}
@media(max-width:420px){
  .za-login-under-button .za-new-account,
  .za-login-under-button .za-remember-inline{
    font-size:var(--zf-font-small,14px);
  }
}

@media(max-width:390px){
  .za-auth-brand{
    padding:26px 20px 24px !important;
  }

  .za-auth-brand h1{
    max-width:300px;
    font-size:31px !important;
  }
}


/* =========================================================
   v9.2.3 mobile headline + vertical-only viewport behavior
   ========================================================= */

.za-auth-title-line{
  display:block;
}

@media(max-width:760px){
  .za-auth-brand h1{
    max-width:340px;
  }

  .za-auth-title-line{
    display:block !important;
  }

  .za-auth-title-second{
    margin-top:2px;
  }

  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden !important;
    overscroll-behavior-x:none;
  }

  body{
    touch-action:pan-y;
  }

  .za-auth-page,
  .za-auth-layout,
  .za-auth-brand,
  .za-auth-panel{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
}


/* =========================================================
   v9.2.4 exact mobile headline treatment
   ========================================================= */

.za-auth-brand h1 .za-auth-title-first{
  color:#ffffff !important;
}

.za-auth-brand h1 .za-auth-title-second{
  color:#60a5fa !important;
}

@media(max-width:760px){
  .za-auth-brand h1 .za-auth-title-first,
  .za-auth-brand h1 .za-auth-title-second{
    display:block !important;
    width:100%;
  }

  .za-auth-brand h1 .za-auth-title-second{
    margin-top:4px;
  }
}


/* =========================================================
   v9.2.5 — fixed top alignment for every authentication step
   ========================================================= */

/*
 * The previous layout vertically centered the card contents inside the
 * right-hand panel. Shorter steps (Password, OTP, Forgot password) therefore
 * appeared lower than the Login form. Keep every state anchored to the same
 * top position instead.
 */
.za-auth-panel{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
}

.za-auth-card{
  margin-top:0 !important;
  margin-bottom:0 !important;
  align-self:flex-start !important;
}

/*
 * Desktop keeps a stable top inset below the site header.
 * This applies equally to Login, Password, Security code, Forgot password,
 * Reset password and registration states.
 */
@media(min-width:761px){
  .za-auth-panel{
    padding-top:96px !important;
    padding-bottom:64px !important;
  }

  .za-auth-card{
    transform:none !important;
  }
}

/*
 * Mobile should never vertically center a short form. The form begins
 * immediately below the compact navy account banner with a predictable gap.
 */
@media(max-width:760px){
  .za-auth-panel{
    min-height:auto !important;
    height:auto !important;
    padding-top:42px !important;
    padding-bottom:48px !important;
    align-items:flex-start !important;
    justify-content:flex-start !important;
  }

  .za-auth-card{
    width:100% !important;
    margin:0 !important;
    transform:none !important;
    position:relative !important;
    top:auto !important;
  }

  .za-auth-heading{
    margin-top:0 !important;
  }
}
