/* Sign-in, registration and password reset pages */

body.auth-body { background: var(--app-bg); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); min-height: 100vh; }

.auth-brand {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 48px;
  background: var(--sidebar-bg); color: var(--sidebar-text);
}
.auth-brand::after {
  content: ""; position: absolute; inset: auto -120px -160px -120px; height: 420px; z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 30% 60%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 70%, rgba(20, 184, 166, 0.2), transparent 70%);
}
.auth-brand .logo-text strong { color: #fff; }
.auth-brand .logo-text span { color: var(--sidebar-text); }
.auth-brand h1 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
.auth-brand ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.auth-brand li { display: flex; gap: 12px; align-items: flex-start; }
.auth-brand li svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-teal); }
.auth-slogan { font-family: var(--font-hand); font-weight: 600; font-size: 1.7rem; line-height: 1.05; color: rgba(255, 255, 255, 0.9); transform: rotate(-6deg); transform-origin: left bottom; }
.auth-slogan svg { display: block; width: 210px; height: 14px; margin-top: 4px; overflow: visible; }
.auth-slogan path { fill: none; stroke: var(--accent-green); stroke-linecap: round; }

.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card .mobile-logo { display: none; margin-bottom: 28px; }
.auth-card h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.015em; }
.auth-card .lead { color: var(--muted); margin: 6px 0 28px; }
.auth-form { display: grid; gap: var(--space-form); }
.auth-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-form); }
.auth-form .label-row { display: flex; justify-content: space-between; align-items: baseline; }
.auth-form .label-row .field-label { margin-bottom: 8px; }
.auth-form .link-btn { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; }
.auth-form .link-btn:hover { text-decoration: underline; }
.auth-form .hint-text { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 70px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--link); background: none; border: 0; padding: 6px 8px; cursor: pointer; border-radius: var(--radius-sm); }
.auth-form .btn { width: 100%; }
.auth-foot { margin-top: 24px; text-align: center; color: var(--muted); font-size: 0.93rem; }
.auth-foot a { font-weight: 600; }
.auth-msg:empty { display: none; }
.auth-msg { margin-bottom: 4px; }
.back-home { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.back-home:hover { color: var(--link); }
.back-home svg { width: 16px; height: 16px; transform: rotate(180deg); }
.done { text-align: center; }
.done .icon-tile { margin: 0 auto 18px; width: 72px; height: 72px; border-radius: 50%; }
.done .icon-tile svg { width: 32px; height: 32px; }
.done p { color: var(--muted); margin: 8px 0 24px; }

@media (max-width: 1023px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card .mobile-logo { display: inline-flex; }
}
@media (max-width: 480px) {
  .auth-form .row { grid-template-columns: 1fr; }
}
