/* ==========================================================================
   Thiên Gia — Đăng nhập / Đăng ký (web). Bố cục 2 cột: cột thương hiệu (ẩn trên điện thoại) + thẻ biểu mẫu.
   Dùng chung màu --accent của theme (khách = xanh ngọc, người làm = cam đỏ). Không inline style (CSP).
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 44px 48px; color: #fff;
  background: radial-gradient(900px 520px at 12% 8%, rgba(45, 212, 191, .38), transparent 60%), radial-gradient(760px 520px at 100% 100%, rgba(59, 130, 246, .38), transparent 60%), linear-gradient(160deg, #06201b, #08182c 70%); }
:root[data-accent="staff"] .auth-brand, .auth[data-role="staff"] .auth-brand { background: radial-gradient(900px 520px at 12% 8%, rgba(251, 146, 60, .38), transparent 60%), radial-gradient(760px 520px at 100% 100%, rgba(244, 63, 94, .34), transparent 60%), linear-gradient(160deg, #24100a, #1a0b1c 70%); }
.auth-brand::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 35%, transparent); pointer-events: none; }
.auth-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; letter-spacing: .2px; position: relative; z-index: 1; }
.auth-logo img { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 8px 26px rgba(0, 0, 0, .35); }
.auth-hero { position: relative; z-index: 1; max-width: 480px; }
.auth-hero h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.18; letter-spacing: -.02em; margin: 0 0 14px; }
.auth-hero p { color: rgba(255, 255, 255, .72); font-size: 1.02rem; margin: 0 0 26px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-points i { flex: 0 0 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.auth-points b { display: block; } .auth-points span { color: rgba(255, 255, 255, .66); font-size: .88rem; }
.auth-foot { position: relative; z-index: 1; color: rgba(255, 255, 255, .55); font-size: .8rem; }

.auth-main { display: grid; place-items: center; padding: 28px 20px; }
.auth-card { width: min(460px, 100%); padding: 32px; border-radius: 26px; }
.auth-card.wide { width: min(520px, 100%); }
.auth-card .brand-sm { display: none; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 18px; } .auth-card .brand-sm img { width: 40px; height: 40px; border-radius: 12px; }
.auth-card h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 20px; }

.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); margin-bottom: 20px; }
.role-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 8px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: .92rem; text-decoration: none; }
.role-tabs a.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 22px var(--accent-soft); }

.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .78rem; color: var(--muted); }
.steps .st { display: flex; align-items: center; gap: 6px; } .steps .st i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; background: rgba(255, 255, 255, .1); }
.steps .st.on { color: var(--text); } .steps .st.on i { background: var(--accent); color: #fff; }
.steps .bar { flex: 1; height: 2px; background: var(--border); border-radius: 2px; }

.auth-card .field { position: relative; }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 46px; width: 100%; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
.pw-eye:hover { color: var(--text); background: rgba(255, 255, 255, .08); }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; } .pw-meter i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); transition: background .2s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: #ef4444; } .pw-meter[data-s="2"] i:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: #84cc16; } .pw-meter[data-s="4"] i { background: #22c55e; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 6px; } .hint.bad { color: #fb7185; } .hint.ok { color: #4ade80; }

.otp-box { padding: 14px; border-radius: 18px; border: 1px dashed var(--accent); background: var(--accent-soft); display: grid; gap: 10px; }
.otp-box[hidden] { display: none; }
.otp-row { display: flex; gap: 8px; } .otp-row input { flex: 1; min-width: 0; }
.otp-code { text-align: center; letter-spacing: .5em; font-size: 1.4rem; font-weight: 700; padding-left: .5em; }
.otp-done { display: flex; align-items: center; gap: 8px; color: #4ade80; font-weight: 600; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-line:disabled { opacity: .55; cursor: not-allowed; }
.auth-card .btn-glow { width: 100%; justify-content: center; min-height: 48px; }
.auth-card .btn-glow:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.3); }
.auth-links { text-align: center; margin: 16px 0 0; color: var(--muted); }
.auth-links a { font-weight: 700; }
.auth-note { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--muted); margin-top: 16px; }
.kyc-note { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); font-size: .86rem; margin-bottom: 14px; }
.kyc-note ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 991px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card .brand-sm { display: flex; }
  .auth-main { align-items: start; padding-top: max(20px, env(safe-area-inset-top)); }
}
@media (max-width: 420px) { .auth-card { padding: 22px 18px; } .grid2 { grid-template-columns: 1fr; } }
