/* Giao diện đăng nhập / đăng ký / quên mật khẩu — tải sau app.css */
.auth-split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: #fff; }
.auth-side { position: relative; overflow: hidden; color: #e2e8f0; padding: 48px 56px; display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(900px 500px at 0% 0%, #2563eb 0%, transparent 60%), radial-gradient(700px 500px at 100% 100%, #7c3aed 0%, transparent 55%), #0b1224; }
.auth-side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.auth-side > * { position: relative; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
.auth-brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .12); }
.auth-brand b { font-size: 1.35rem; color: #fff; letter-spacing: .3px; }
.auth-side h2 { font-size: 1.9rem; line-height: 1.25; font-weight: 800; color: #fff; margin: 0 0 12px; }
.auth-side .lead-s { color: #b6c2d9; margin: 0 0 32px; max-width: 420px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; }
.auth-points .pt-ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); }
.auth-points .pt-ic .ic { width: 20px; height: 20px; color: #bfdbfe; }
.auth-points b { display: block; color: #fff; font-weight: 600; }
.auth-points span { color: #aab7cf; font-size: .9rem; }

.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; background: #f8fafc; }
.auth-box { width: 100%; max-width: 420px; }
.auth-split.wide .auth-box { max-width: 620px; }
.auth-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px; box-shadow: 0 10px 40px rgba(15, 23, 42, .07); }
.auth-form h1 { font-size: 1.5rem; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.auth-form .sub { color: var(--muted); margin: 0 0 24px; font-size: .95rem; }
.auth-form .form-label { font-weight: 600; font-size: .86rem; color: var(--text); margin-bottom: 6px; }
.auth-form .form-control { height: 46px; border-radius: 12px; border-color: #d5deea; background: #fbfdff; padding: 0 14px; }
.auth-form .form-control:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.auth-form .input-group .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.auth-form .input-group .btn { border-radius: 0 12px 12px 0; border-color: #d5deea; color: var(--muted); min-width: 56px; }
.auth-form .btn-primary { height: 48px; border-radius: 12px; font-weight: 700; border: 0; background: linear-gradient(135deg, #2563eb, #4f46e5); box-shadow: 0 8px 20px rgba(37, 99, 235, .3); transition: transform .12s, box-shadow .12s; }
.auth-form .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(37, 99, 235, .38); }
.auth-form .btn-primary:disabled { opacity: .7; transform: none; }
.auth-form .pw-wrap { position: relative; }
.auth-form .pw-wrap .form-control { padding-right: 62px; }
.auth-form .pw-toggle { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: 0; background: transparent; color: var(--brand); font-weight: 600; font-size: .82rem; border-radius: 8px; }
.auth-form .pw-toggle:hover { background: var(--brand-soft); }
.auth-form .sec-title { font-size: .72rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); margin: 4px 0 10px; display: flex; align-items: center; gap: 10px; }
.auth-form .sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form .flash { margin-bottom: 18px; }
.auth-links { text-align: center; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.auth-links a { color: var(--brand); font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-links .sep { margin: 0 8px; opacity: .5; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; margin: 20px 0 14px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { display: block; text-align: center; height: 46px; line-height: 44px; border: 1px solid #d5deea; border-radius: 12px; color: var(--text); font-weight: 600; text-decoration: none; background: #fff; }
.auth-alt:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

@media (max-width: 991.98px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-side { padding: 22px 20px 26px; }
    .auth-brand { margin: 0; }
    .auth-brand img { width: 40px; height: 40px; }
    .auth-side h2, .auth-side .lead-s, .auth-points { display: none; }
    .auth-main { padding: 20px 14px 32px; align-items: stretch; }
    .auth-box { max-width: none; margin: -18px auto 0; position: relative; }
    .auth-form { padding: 26px 20px; border-radius: 18px; }
}
@media (prefers-color-scheme: dark) { .auth-main { background: #0b1224; } }
