/* Sign-in and password-change screens: brand panel + form. Colours from app.css tokens. */
body.auth-body { margin: 0; min-height: 100vh; background: var(--background); font-family: var(--font-sans); color: var(--text); }
.auth-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; padding: 14px; gap: 14px; }

/* brand panel */
.auth-hero {
    position: relative; overflow: hidden; border-radius: 30px;
    background: linear-gradient(150deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: #fff; padding: 40px 44px; display: flex; flex-direction: column;
}
.auth-hero::before {
    content: ""; position: absolute; width: 520px; height: 520px; right: -180px; top: -200px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.22), rgba(255,255,255,0) 68%);
}
.auth-hero-top { display: flex; align-items: center; gap: 12px; position: relative; }
.auth-hero-mark { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 19px; }
.auth-hero-name { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.auth-hero-copy { position: relative; margin-top: auto; max-width: 520px; }
.auth-hero-copy h2 { font-size: clamp(30px, 3.2vw, 46px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 14px; }
.auth-hero-copy p { font-size: 16px; color: rgba(255,255,255,.82); margin: 0; }
.auth-hero-cards { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 30px 0 auto; max-width: 380px; z-index: 1; }
.ah-card {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 20px;
    background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.18);
}
.ah-card b { display: block; font-size: 14.5px; font-weight: 600; }
.ah-card small { display: block; font-size: 12.5px; color: rgba(255,255,255,.78); }
.ah-ico { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary-700); font-size: 15px; }
.ah-card-b { margin-left: 28px; } .ah-card-c { margin-left: 56px; }
.auth-hero-fields { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; pointer-events: none; }

/* form panel */
.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border-radius: 28px; box-shadow: 0 1px 2px rgba(23,32,51,.035); padding: 40px 38px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.auth-brand .brand-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 17px; }
.auth-brand .brand-name { font-weight: 700; font-size: 18px; }
.auth-title { font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin: 0 0 6px; }
.auth-subtitle { color: var(--muted); font-size: 14.5px; margin: 0 0 28px; }
.auth-card .form-label { font-weight: 500; font-size: 13.5px; }
.auth-card .form-control { height: 50px; border-radius: 14px; background: var(--surface-3); border-color: transparent; font-size: 14.5px; }
.auth-card .form-control:focus { background: #fff; border-color: var(--primary); }
.auth-field { position: relative; }
.auth-field .form-control { padding-left: 44px; }
.auth-field-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #9aa2b1; pointer-events: none; z-index: 2; }
.auth-field:focus-within .auth-field-ico { color: var(--primary); }
.auth-card .btn-primary { width: 100%; height: 50px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.auth-card .alert { border: 0; border-radius: 14px; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-copy { margin: 18px 0 0; font-size: 12.5px; color: #9aa2b1; }

@media (max-width: 991.98px) {
    .auth-split { grid-template-columns: 1fr; padding: 0; }
    .auth-hero { display: none; }
    .auth-panel { min-height: 100vh; padding: 20px 16px; }
    .auth-card { padding: 32px 24px; border-radius: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
    .ah-card { animation: ahIn .5s ease both; }
    .ah-card-b { animation-delay: .08s; } .ah-card-c { animation-delay: .16s; }
    @keyframes ahIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
