.auth-shell {
  position: relative; width: 100%; min-height: 100%; display: grid; place-items: center; overflow: auto;
  padding: 32px; background:
    radial-gradient(circle at 8% 8%, rgba(37,99,235,.09), transparent 31%),
    linear-gradient(135deg, #f7faff 0%, #f3f6fb 55%, #eef3fa 100%);
}
.auth-ambient {
  position: fixed; inset: 0; pointer-events: none; opacity: .42;
  background-image:
    linear-gradient(rgba(148,163,184,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom right, #000, transparent 72%);
}
.auth-layout {
  position: relative; z-index: 1; width: min(1040px, 100%); display: grid;
  grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: clamp(48px, 8vw, 104px);
}
.auth-intro { min-width: 0; padding: 20px 0; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand > span:last-child { display: grid; gap: 2px; }
.auth-brand strong { font-size: 17px; letter-spacing: -.02em; }
.auth-brand small { color: var(--muted); font-size: 10px; }
.auth-copy { margin-top: 76px; }
.auth-kicker { color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.auth-copy h1 { margin: 17px 0 18px; font-size: clamp(34px, 4vw, 50px); line-height: 1.15; letter-spacing: -.045em; }
.auth-copy p { max-width: 510px; margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.85; }
.auth-benefits { margin: 36px 0 0; padding: 0; display: grid; gap: 18px; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 13px; }
.auth-benefits li > span {
  width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center;
  border: 1px solid #cfe0fd; border-radius: 10px; color: var(--blue); background: rgba(255,255,255,.7);
}
.auth-benefits svg { width: 18px; height: 18px; }
.auth-benefits div { display: grid; gap: 3px; }
.auth-benefits strong { font-size: 12px; }
.auth-benefits small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.auth-security-note { margin: 44px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.auth-security-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(22,132,91,.10); }

.auth-card {
  width: 100%; padding: 30px; border: 1px solid rgba(203,213,225,.92); border-radius: 18px;
  background: rgba(255,255,255,.97); box-shadow: 0 24px 70px rgba(31,50,81,.13);
}
.auth-card-heading { display: flex; align-items: center; gap: 13px; }
.auth-card-icon {
  width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 11px; color: var(--blue); background: var(--blue-soft);
}
.auth-card-icon svg { width: 21px; height: 21px; }
.auth-card-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.auth-card-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.auth-tabs { margin-top: 25px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; background: #f1f5f9; }
.auth-tab {
  min-height: 36px; border: 0; border-radius: 7px; color: var(--muted); background: transparent;
  font-size: 11px; font-weight: 650; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.auth-tab:hover { color: var(--text-2); }
.auth-tab.is-active { color: var(--blue); background: #fff; box-shadow: 0 2px 7px rgba(31,50,81,.09); }
.auth-tab:disabled { opacity: .42; cursor: not-allowed; }
.auth-alert {
  margin-top: 14px; padding: 10px 11px; display: flex; align-items: flex-start; gap: 8px;
  border: 1px solid #f4c7c3; border-radius: 8px; color: #a52b23; background: var(--red-soft); font-size: 10px; line-height: 1.5;
}
.auth-alert svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.auth-form { margin-top: 19px; display: grid; gap: 15px; }
.auth-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { display: flex; align-items: baseline; justify-content: space-between; color: var(--text-2); font-size: 10px; font-weight: 650; }
.auth-field label small { color: var(--muted); font-size: 8px; font-weight: 500; }
.auth-field-hint { margin: -1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.auth-input-wrap { position: relative; }
.auth-input-wrap > svg {
  position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; color: #8290a3; transform: translateY(-50%);
}
.auth-input-wrap input {
  width: 100%; height: 42px; padding: 0 40px 0 36px; border: 1px solid var(--line-strong);
  border-radius: 9px; outline: none; color: var(--text); background: #fff; font-size: 11px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-input-wrap:not(:has(> svg)) input { padding-left: 11px; }
.auth-input-wrap input:hover { border-color: #aebaca; }
.auth-input-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.auth-input-wrap input[aria-invalid="true"] { border-color: var(--red); background: #fffafa; }
.auth-input-wrap input::placeholder { color: #9aa6b5; }
.password-toggle {
  position: absolute; top: 0; right: 0; width: 42px; height: 42px; display: grid; place-items: center;
  border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer;
}
.password-toggle:hover { color: var(--blue); }
.password-toggle svg { width: 17px; height: 17px; }
.auth-submit {
  width: 100%; min-height: 44px; margin-top: 2px; padding: 0 14px; display: flex; align-items: center;
  justify-content: center; gap: 9px; border: 1px solid var(--blue); border-radius: 9px; color: #fff;
  background: var(--blue); font-size: 11px; font-weight: 700; cursor: pointer;
  box-shadow: 0 7px 16px rgba(37,99,235,.17); transition: background .15s ease, box-shadow .15s ease;
}
.auth-submit:hover { background: var(--blue-hover); box-shadow: 0 9px 19px rgba(37,99,235,.22); }
.auth-submit:disabled { opacity: .58; cursor: wait; box-shadow: none; }
.auth-submit svg { width: 16px; height: 16px; }
.auth-submit.is-loading svg { animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-card-footnote { margin: 19px 0 0; display: flex; align-items: flex-start; justify-content: center; gap: 6px; color: var(--muted); font-size: 8px; line-height: 1.5; text-align: center; }
.auth-card-footnote svg { width: 13px; height: 13px; flex: 0 0 auto; }


.auth-copy h1 {font-size:40px;line-height:1.25;}
.auth-field label {font-size:13px;}
.auth-field label small {font-size:11px;}
.auth-field-hint {font-size:12px;}
.auth-input-wrap input {font-size:14px;height:44px;}
.auth-tab,.auth-submit {font-size:14px;}
.auth-card-heading p {font-size:13px;line-height:1.6;}
.auth-card-footnote {font-size:11px;}
.auth-alert {font-size:13px;}
@media(max-width:900px){body.auth-mode{overflow:auto}.auth-shell{height:auto;min-height:100vh;padding:24px 18px}.auth-layout{width:min(480px,100%);grid-template-columns:1fr;gap:20px}.auth-copy{margin-top:25px}.auth-copy h1{font-size:28px}.auth-benefits{display:none}.auth-intro{padding:0}}
@media(max-width:560px){.auth-shell{padding:20px 14px}.auth-card{padding:24px 20px}.auth-copy h1{font-size:26px}.auth-brand .brand-mark{width:36px;height:36px}}
