.auth-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.15fr); background: var(--surface); }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--ink-950); color: #fff; padding: clamp(28px, 5vw, 68px); }
.auth-aside::after { content: ""; position: absolute; width: 480px; height: 480px; right: -260px; bottom: -250px; border: 72px solid rgba(212, 155, 72, 0.16); border-radius: 50%; }
.auth-aside .brand { position: relative; z-index: 1; align-self: flex-start; color: #fff; }
.auth-message { position: relative; z-index: 1; max-width: 540px; }
.auth-message h1 { margin-bottom: 22px; font-size: clamp(2.35rem, 5vw, 4.6rem); }
.auth-message p { max-width: 480px; color: #b3c4c9; font-size: 1.05rem; }
.auth-benefits { position: relative; z-index: 1; display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; color: #d5e1e4; }
.auth-benefits li::before { content: "✓"; margin-right: 10px; color: var(--accent-500); font-weight: 900; }
.auth-main { display: grid; place-items: center; padding: clamp(24px, 6vw, 72px); }
.auth-card { width: min(100%, 460px); }
.auth-card > h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.auth-card > .muted { margin-bottom: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border-radius: 13px; background: var(--surface-muted); padding: 5px; margin-bottom: 26px; }
.auth-tab { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-600); font-weight: 800; cursor: pointer; }
.auth-tab.active { background: #fff; color: var(--ink-950); box-shadow: 0 2px 10px rgba(16, 42, 51, 0.08); }
.auth-form { display: grid; gap: 16px; }
.auth-form[hidden] { display: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 74px; }
.password-toggle { position: absolute; right: 7px; top: 7px; min-height: 34px; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--ink-600); padding-inline: 10px; cursor: pointer; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 0.88rem; }
.check { display: inline-flex; align-items: center; gap: 8px; }
.check input { width: 18px; height: 18px; }
.auth-status { min-height: 24px; border-radius: 10px; color: var(--ink-600); font-size: 0.9rem; }
.auth-status.error { color: var(--danger-600); }
.auth-status.success { color: var(--success-600); }
.back-site { display: inline-flex; margin-top: 22px; color: var(--brand-600); font-weight: 750; text-decoration: none; }

[data-theme="dark"] .auth-tab.active { background: var(--surface); color: var(--ink-950); box-shadow: none; }
[data-theme="dark"] .auth-aside { background: #0b1114; }

@media (max-width: 840px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { min-height: auto; gap: 38px; padding: 26px 24px 38px; }
  .auth-message h1 { margin: 16px 0 12px; font-size: clamp(2rem, 10vw, 3.2rem); }
  .auth-benefits { display: none; }
  .auth-main { align-items: start; padding: 34px 20px 54px; }
}

@media (max-width: 480px) {
  .auth-aside { padding: 22px 18px 28px; }
  .auth-aside .brand-mark { width: 32px; height: 32px; font-size: 0.76rem; }
  .auth-message h1 { font-size: 1.8rem; }
  .auth-message p { font-size: 0.92rem; }
  .auth-aside > .small { display: none; }
  .auth-main { padding: 28px 16px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .auth-card > h2 { font-size: 1.6rem; }
  .auth-card > .muted { font-size: 0.88rem; }
  .auth-tab { min-height: 44px; font-size: 0.88rem; }
}
