.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr); background: var(--bg-elevated); }
.auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 56px; color: #fff;
  background:
    radial-gradient(60% 50% at 90% 0%, rgba(152, 193, 217, .38), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(238, 108, 77, .32), transparent 70%),
    linear-gradient(160deg, #3D5A80 0%, #2F4868 60%, #293241 100%);
}
.auth-brand::after {
  content: ""; position: absolute; right: -120px; bottom: -80px; width: 520px; height: 452px; opacity: .07;
  background: url("/static/img/logo-mark.svg") no-repeat center / contain; filter: brightness(0) invert(1);
}
.auth-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.auth-hero { position: relative; z-index: 1; max-width: 520px; }
.auth-mark { width: 64px; height: auto; filter: brightness(0) invert(1); margin-bottom: 28px; }
.auth-hero h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.12; letter-spacing: -.03em; }
.auth-hero p { margin-top: 16px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.auth-stats { display: flex; gap: 32px; margin-top: 40px; }
.auth-stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.auth-stats span { color: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 600; }
.auth-foot { color: rgba(255, 255, 255, .55); font-size: 13px; position: relative; z-index: 1; }

.auth-main { display: flex; flex-direction: column; padding: 28px 40px; }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.back-link svg { width: 16px; height: 16px; }
.auth-form { width: min(400px, 100%); margin: auto; padding: 40px 0; }
.form-mark { width: 44px; height: auto; margin-bottom: 22px; display: none; }
.auth-form h2 { font-size: 30px; letter-spacing: -.03em; }
.auth-form > .muted { margin: 8px 0 30px; }
.auth-form .field + .field { margin-top: 18px; }
.auth-form .input { height: 50px; font-size: 15.5px; }
.auth-form .form-error { margin: 14px 0 6px; }
.auth-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 22px; color: var(--muted); font-size: 13px; font-weight: 600; }
.auth-note svg { width: 15px; height: 15px; }
.auth-switch { margin-top: 18px; text-align: center; color: var(--text-2); font-size: 14.5px; font-weight: 600; }
.auth-switch a { font-weight: 800; }
.auth-form .hint { display: block; margin-top: 6px; }
.auth-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13.5px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.auth-check input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .form-mark { display: block; }
  .auth-main { padding: 20px; }
}
