:root {
  --sotto-ink: #29262c;
  --sotto-muted: #716b73;
  --sotto-line: #e8e5e8;
  --sotto-panel: #fff;
  --sotto-background: #fff;
  --sotto-red: #8b2344;
  --sotto-green: #28735d;
  --auth-soft: #f8f6f5;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--sotto-ink); background: #fff; font: 14px/1.6 Inter, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.auth-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.auth-body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: none; min-height: 88px; padding: 16px clamp(24px, 5vw, 80px); border-bottom: 1px solid var(--sotto-line); }
.brand-logo { color: var(--sotto-red); text-decoration: none; font: 500 40px/1 Georgia, 'Times New Roman', serif; letter-spacing: -.065em; }
.auth-header__switch { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--sotto-muted); }
.auth-header__switch a { min-height: 44px; display: inline-flex; align-items: center; color: var(--sotto-ink); font-weight: 500; text-decoration: none; }
.auth-header__switch a:hover { color: var(--sotto-red); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); flex: 1; width: min(100%, 1440px); margin: 0 auto; }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: flex-end; margin: 24px 0 24px 24px; overflow: hidden; min-height: min(610px, calc(100svh - 170px)); background: #393331; border-radius: 12px; color: #fff; }
.auth-story__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.auth-story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #171214a8 75%, #171214d9); }
.auth-story__copy { position: relative; z-index: 1; padding: clamp(32px, 4vw, 64px); }
.auth-eyebrow { margin: 0 0 20px; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .18em; text-transform: uppercase; }
.auth-story h2 { max-width: 420px; margin: 0; font: 400 clamp(38px, 4vw, 57px)/1.08 Georgia, serif; letter-spacing: -.035em; text-wrap: balance; }
.auth-story__copy > p:last-child { max-width: 310px; margin: 22px 0 0; color: #ffffffe0; font-size: 13px; line-height: 1.8; }
.auth-main { align-self: start; width: min(100%, 480px); margin: auto; padding: 64px 40px; }
.auth-main--register { width: min(100%, 520px); padding-top: 40px; padding-bottom: 40px; }
.auth-main--recovery { width: min(100%, 460px); }
.auth-main > .auth-eyebrow { color: var(--sotto-red); margin-bottom: 16px; }
.login-title, .register-card h2 { font: 400 40px/1.15 Georgia, 'Times New Roman', serif; letter-spacing: -.04em; color: var(--sotto-ink); margin: 0 0 12px; }
.auth-description { color: var(--sotto-muted); font-size: 14px; line-height: 1.8; margin: 0 0 32px; }
.login-field { margin-bottom: 22px; }
.field-label { display: block; color: var(--sotto-ink); font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.field-label-row a { color: var(--sotto-muted); font-size: 12px; text-decoration: none; }
.field-label-row a:hover { color: var(--sotto-red); text-decoration: underline; }
.login-input, .register-input { width: 100%; height: 52px; padding: 0 14px; color: var(--sotto-ink); border: 1px solid #dedade; border-radius: 8px; background: #fff; font-size: 16px; outline: none; }
input::placeholder { color: #928b93; font-weight: 400; font-size: 14px; }
.login-input:disabled, .register-input:disabled { color: var(--sotto-muted); background: var(--auth-soft); }
.password-field { position: relative; }
.password-field :is(.login-input, .register-input) { padding-right: 52px; }
.password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; padding: 12px; border: 0; border-radius: 6px; background: transparent; color: var(--sotto-muted); }
.password-toggle:hover { background: var(--auth-soft); color: var(--sotto-ink); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-slash { display: none; }
.password-toggle[aria-pressed=true] .eye-slash { display: block; }
.login-button, .primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 500; transition: background 150ms, color 150ms; }
.login-button, .primary-button { background: var(--sotto-red); color: #fff; }
.login-button { width: 100%; }
.login-button:hover, .primary-button:hover { background: #731b37; }
:is(.login-button, .primary-button):disabled { background: #ece7e9; color: #8a7d84; cursor: default; }
.secondary-button { background: transparent; border-color: var(--sotto-line); color: var(--sotto-muted); }
.secondary-button:hover { background: var(--auth-soft); color: var(--sotto-ink); }
.secondary-button:disabled { opacity: .5; cursor: default; }
.auth-form-footer { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--sotto-muted); }
.auth-form-footer a { color: var(--sotto-red); text-decoration: none; font-weight: 500; margin-left: 4px; }
.auth-form-footer a:hover { text-decoration: underline; }
.auth-footer { padding: 18px 24px 22px; color: var(--sotto-muted); font-size: 11px; text-align: center; }
.auth-footer a { margin: 0 10px; text-decoration: none; }
.auth-footer a:hover { color: var(--sotto-red); text-decoration: underline; }
.error-box { border-radius: 8px; margin: 0 0 20px; padding: 12px 14px; background: #fcf1f3; color: #9a344c; font-size: 12px; line-height: 1.7; }
.auth-field-error { min-height: 19px; margin: 6px 0 -6px; color: #9a344c; font-size: 12px; }
.field-hint, .field-feedback { min-height: 20px; margin: 7px 0 0; color: var(--sotto-muted); font-size: 12px; line-height: 1.6; }
.field-feedback.success, .field-hint.success { color: var(--sotto-green); }
.field-feedback.error, .field-hint.error { color: #9a344c; }
.auth-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border: 1px solid var(--sotto-line); border-radius: 50%; color: var(--sotto-red); }
.auth-symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 20px; font-size: 12px; text-decoration: none; color: var(--sotto-muted); }
.back-link:hover { color: var(--sotto-red); }
.auth-back { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.auth-body :is(button, a):focus-visible { outline: 2px solid #8b818b; outline-offset: 4px; }
.auth-body form[aria-busy=true] .login-button::before, .primary-button[aria-busy=true]::before { content: ''; width: 13px; height: 13px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (min-width: 1600px) { .auth-story { min-height: 680px; } }
@media (max-width: 959px) {
  .auth-header { min-height: 76px; padding: 12px 28px; }
  .auth-layout { display: flex; justify-content: center; align-items: flex-start; }
  .auth-story { display: none; }
  .auth-main { align-self: flex-start; margin: 0; padding: 56px 32px 32px; }
  .auth-main--register { padding-top: 28px; }
  .auth-footer { margin-top: auto; }
}
@media (max-width: 480px) {
  .auth-header { min-height: 72px; padding-inline: 24px; }
  .brand-logo { font-size: 35px; }
  .auth-header__switch > span { display: none; }
  .auth-header__switch { font-size: 12px; }
  .auth-main { padding: 42px 24px 28px; }
  .auth-main--register { padding-top: 24px; }
  .login-title, .register-card h2 { font-size: 34px; }
  .auth-description { margin-bottom: 28px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
