/* Đăng nhập / chào mừng / chuyển giao Admin (login.html, welcome.html, admin-area-handoff.html).
   Gộp 6/10 (bước 2 hệ thiết kế) — nối nguyên văn các tệp cũ theo đúng thứ tự trang đang nạp, không đổi luật nào. */

/* ── từ login.css ── */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#eef3fb}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 12% 10%,#dbeafe 0,transparent 38%),radial-gradient(circle at 88% 90%,#dcfce7 0,transparent 34%),#f5f7fb}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1.15fr) minmax(340px,.85fr);align-items:center;gap:7vw;max-width:1180px;margin:auto;padding:48px}.login-copy{max-width:620px}.login-brand{display:flex;align-items:center;gap:13px;font-size:25px;margin-bottom:70px}.login-brand span{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;color:white;background:linear-gradient(145deg,#2563eb,#16a34a);font-weight:800;box-shadow:0 12px 28px #2563eb33}.login-copy>p,.login-card small{font-size:12px;letter-spacing:.17em;font-weight:800;color:#2563eb}.login-copy h1{font-size:clamp(40px,5vw,67px);line-height:1.03;margin:18px 0 24px;letter-spacing:-.05em}.login-copy>span{display:block;max-width:580px;font-size:18px;line-height:1.7;color:#637087}.login-card{background:#ffffffdf;border:1px solid #fff;border-radius:28px;padding:38px;box-shadow:0 30px 80px #1720331a;backdrop-filter:blur(18px)}.login-card h2{font-size:32px;margin:8px 0}.login-card p{color:#718096;margin:0 0 28px}.login-card label{display:grid;gap:9px;margin-top:19px;font-weight:700;font-size:14px}.login-card input{width:100%;border:1px solid #d9e1ef;border-radius:13px;padding:14px 15px;font:inherit;background:#f8fafc;outline:none}.login-card input:focus{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61a;background:white}.login-card button{width:100%;margin-top:25px;border:0;border-radius:13px;padding:15px;background:#2563eb;color:white;font:inherit;font-weight:800;cursor:pointer}.login-card button:disabled{opacity:.65}.login-card #login-result{color:#dc2626;margin:15px 0 0;min-height:20px;font-size:14px}@media(max-width:780px){.login-shell{grid-template-columns:1fr;padding:24px}.login-copy{display:none}.login-card{padding:28px}}
[hidden]{display:none!important}.login-heading{margin-bottom:6px}.field-hint{font-weight:500;color:#718096;letter-spacing:0!important;font-size:12px!important}.oauth-divider{display:flex;align-items:center;gap:12px;margin:22px 0 14px;color:#8a96ab;font-size:13px}.oauth-divider:before,.oauth-divider:after{content:"";flex:1;height:1px;background:#e2e8f0}.oauth-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.oauth-button{display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #d9e1ef;border-radius:13px;padding:12px;background:white;color:#172033;font-weight:700;text-decoration:none;font-size:14px}.oauth-button:hover{border-color:#3b82f6;background:#f8fbff}.oauth-button svg{width:18px;height:18px}.login-card .login-switch{margin:20px 0 0;text-align:center;font-size:14px;color:#637087}.login-card .link-button{display:inline;width:auto;margin:0;padding:0;background:none;color:#2563eb;font-weight:800;border-radius:0}.login-card .link-button:hover{text-decoration:underline}.login-card #login-result a{color:#2563eb;font-weight:700}
.login-card #login-result.login-info{color:#1e40af}
.login-card .login-legal{margin:16px 0 0;font-size:12.5px;line-height:1.55;color:#718096;text-align:center}.login-card .login-legal a{color:#2563eb;font-weight:700;text-decoration:none}.login-card .login-legal a:hover{text-decoration:underline}
.forgot-line{margin:-4px 0 4px;text-align:right;font-size:14px}.reset-intro{margin:0 0 6px;color:#637087;line-height:1.55;font-size:14px}#reset-result{color:#dc2626;margin:15px 0 0;min-height:20px;font-size:14px}#reset-result.login-info{color:#1e40af}#reset-code{letter-spacing:.3em;font-size:18px}
#reset-resend[hidden]+.reset-sep{display:none}
/* Chỉ còn một nút (Google) thì trải hết chiều ngang. */
.oauth-buttons>.oauth-button:only-child{grid-column:1/-1}
.mfa-qr{display:grid;place-items:center;margin:14px 0 6px}.mfa-qr svg{width:210px;height:210px;border:1px solid #e2e8f0;border-radius:14px;padding:6px;background:#fff}
.mfa-manual{font-size:13px;color:#637087;margin:4px 0 0}.mfa-manual summary{cursor:pointer;font-weight:700;color:#2563eb}.mfa-manual code{display:block;margin-top:8px;padding:10px 12px;border-radius:10px;background:#f1f5f9;font-size:14px;letter-spacing:.08em;word-break:break-all;color:#172033}
#mfa-code{letter-spacing:.3em;font-size:18px}#mfa-result{color:#dc2626;margin:15px 0 0;min-height:20px;font-size:14px}
.mfa-recovery-codes{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px;margin:16px 0;padding:14px 14px 14px 36px;border-radius:14px;background:#f1f5f9;font:600 15px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#172033}
.login-card .mfa-confirm{display:flex;align-items:center;gap:10px;font-weight:600}.login-card .mfa-confirm input{width:18px;height:18px;padding:0}
.passkey-button{width:100%;min-height:46px;margin-top:8px;border:1px solid #c9d5ea;border-radius:10px;background:#fff;color:#172033;font:inherit;font-weight:700;cursor:pointer}.passkey-button:hover{background:#f3f7ff}.passkey-button:disabled{opacity:.6;cursor:wait}

/* ── từ welcome.css ── */
.welcome-shell{max-width:980px;margin:auto;padding:28px 20px 60px}
.welcome-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:36px}
.welcome-brand{display:flex;align-items:center;gap:10px;font-size:21px;color:#172033;text-decoration:none}
.welcome-brand img{width:38px;height:38px}
.welcome-ghost{border:1px solid #d9e1ef;background:white;border-radius:11px;padding:8px 13px;font:inherit;font-weight:700;color:#334155;cursor:pointer}
.welcome-ghost:hover{border-color:#3b82f6}
.welcome-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;flex-wrap:wrap;margin-bottom:24px}
.welcome-hero small,.join-card>small{font-size:12px;letter-spacing:.17em;font-weight:800;color:#2563eb}
.welcome-hero h1,.join-card h1{font-size:clamp(28px,4vw,40px);letter-spacing:-.03em;margin:8px 0}
.join-card h1 span{color:#2563eb}
.welcome-hero p{color:#637087;margin:0}
.lavix-id{display:grid;grid-template-columns:auto auto;gap:6px 12px;align-items:center;background:white;border:1px solid #e2e8f0;border-radius:18px;padding:16px 18px}
.lavix-id span{grid-column:1/-1;font-size:13px;color:#637087;font-weight:700}
.lavix-id b{font-size:24px;letter-spacing:.06em;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.lavix-id small{grid-column:1/-1;color:#8a96ab;font-size:12px;letter-spacing:0;font-weight:500}
.welcome-card{background:#ffffffe6;border:1px solid #fff;border-radius:22px;padding:24px;box-shadow:0 20px 50px #1720330f;margin-bottom:18px}
.welcome-card h2{font-size:20px;margin:0 0 6px}
.welcome-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.welcome-grid .welcome-card{margin:0}
.welcome-muted{color:#637087;margin:0 0 14px;line-height:1.55}
.welcome-card label{display:grid;gap:8px;font-weight:700;font-size:14px;margin-top:10px}
.welcome-card input{width:100%;border:1px solid #d9e1ef;border-radius:12px;padding:12px 14px;font:inherit;background:#f8fafc;outline:none}
.welcome-card input:focus{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f61a;background:white}
.welcome-card button,.join-card button{margin-top:16px;border:0;border-radius:12px;padding:12px 18px;background:#2563eb;color:white;font:inherit;font-weight:800;cursor:pointer}
.welcome-card button.secondary{background:#eef2ff;color:#1e40af}
.welcome-card button:disabled{opacity:.6}
.welcome-list{display:grid;gap:10px;margin-top:12px}
.welcome-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid #e2e8f0;border-radius:14px;padding:12px 14px;background:white}
.welcome-row div:first-child{display:grid;gap:3px}
.welcome-row small{color:#637087}
.welcome-row button{margin:0}
.welcome-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.welcome-actions button{margin-top:0}
.join-card{max-width:560px;margin:40px auto}
.join-card .welcome-actions{margin-top:18px}
.welcome-link{color:#2563eb;font-weight:700;text-decoration:none}
.welcome-result{color:#dc2626;min-height:18px;margin:12px 0 0;font-size:14px}
@media(max-width:720px){.welcome-grid{grid-template-columns:1fr}.welcome-row{flex-direction:column;align-items:flex-start}}
.email-verify-card{border-color:#fde68a;background:#fffbeb}.welcome-notice{margin:0 0 18px;padding:12px 16px;border-radius:14px;background:#ecfdf5;color:#047857;font-weight:700}.welcome-notice.error{background:#fef2f2;color:#b91c1c}
