/* Màn đăng nhập + màn khoá Admin: nền công nghệ tối + thẻ kính (glass), màu chính theo --primary-rgb (admin-brand.css) */
body.login-img { background: #040a1d !important; min-height: 100vh; }
.auth-shell { position: relative; min-height: 100vh; overflow: hidden; color: #e8edff; display: flex; align-items: center; }
.auth-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        radial-gradient(1100px 620px at 12% 18%, rgba(var(--primary-rgb), .38), transparent 60%),
        radial-gradient(900px 560px at 88% 82%, rgba(0, 194, 255, .22), transparent 60%),
        linear-gradient(160deg, #040a1d 0%, #06123a 55%, #040a1d 100%); }
.auth-grid { position: absolute; inset: -2px;
    background-image:
        linear-gradient(rgba(140, 170, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 170, 255, .08) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at 50% 45%, #000 30%, transparent 75%); }
.auth-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: authFloat 16s ease-in-out infinite; }
.auth-orb.o1 { width: 340px; height: 340px; left: -80px; top: 12%; background: rgb(var(--primary-rgb)); }
.auth-orb.o2 { width: 260px; height: 260px; right: 6%; bottom: -60px; background: #00b3ff; animation-delay: -5s; }
.auth-orb.o3 { width: 180px; height: 180px; right: 32%; top: -40px; background: #6a5cff; opacity: .35; animation-delay: -9s; }
@keyframes authFloat { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(24px, -18px, 0); } }
@media (prefers-reduced-motion: reduce) { .auth-orb { animation: none; } }

.auth-wrap { position: relative; z-index: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 48px 24px;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; max-width: 480px; padding: 32px 16px; } .auth-hero { display: none !important; } }

.auth-hero { display: flex; flex-direction: column; gap: 22px; }
.auth-hero .auth-logo { height: 56px; width: auto; align-self: flex-start; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: #9fc0ff; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(140, 170, 255, .28); background: rgba(255, 255, 255, .04); }
.auth-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #22e3a2; box-shadow: 0 0 10px #22e3a2; }
.auth-hero h1 { font-size: 40px; line-height: 1.15; font-weight: 700; color: #fff; margin: 0; letter-spacing: -.01em; }
.auth-hero h1 span { background: linear-gradient(90deg, #6fa1ff, #00c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { font-size: 15px; line-height: 1.6; color: #b9c5ea; margin: 0; max-width: 520px; }
.auth-features { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; }
.auth-features li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(140, 170, 255, .16); backdrop-filter: blur(8px); }
.auth-features i { flex: 0 0 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
    color: #fff; background: linear-gradient(135deg, rgb(var(--primary-rgb)), #00b3ff); box-shadow: 0 6px 16px rgba(var(--primary-rgb), .35); }
.auth-features b { display: block; font-size: 13px; color: #fff; font-weight: 600; }
.auth-features span { display: block; font-size: 12px; color: #9fb0dd; line-height: 1.45; }

.auth-card { position: relative; border-radius: 20px; padding: 36px 32px 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); }
.auth-card::before { content: ""; position: absolute; inset: -1px; border-radius: 20px; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(0, 194, 255, .7), rgba(var(--primary-rgb), .25) 40%, transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.auth-card .auth-logo-sm { height: 40px; width: auto; margin-bottom: 18px; }
.auth-card h2 { font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.auth-card .auth-sub { font-size: 13px; color: #a9b6de; margin-bottom: 26px; }
.auth-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #c9d4f5; margin-bottom: 8px; }
.auth-field { --field-bg: #101a3d; position: relative; display: flex; align-items: center; margin-bottom: 18px; border-radius: 12px;
    background: var(--field-bg); border: 1px solid rgba(160, 185, 255, .22); transition: border-color .15s ease, box-shadow .15s ease; }
.auth-field:focus-within { border-color: rgb(var(--primary-rgb)); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .35), 0 0 24px rgba(0, 194, 255, .15); }
.auth-field .auth-icon { width: 44px; display: inline-flex; justify-content: center; color: #8ea4e0; font-size: 16px; }
.auth-field input, .auth-pass input { flex: 1 1 auto; min-width: 0; height: 48px; border: 0 !important; outline: 0; background: transparent !important; color: #fff !important;
    font-size: 14px; padding: 0 12px 0 0; box-shadow: none !important; }
.auth-field input::placeholder { color: rgba(200, 212, 245, .45); }
/* Trình duyệt tự điền tô nền sáng cho ô → phủ lại bằng màu ô (inset shadow, phải !important vì rule trên đặt box-shadow: none !important)
   để chữ trắng không bị mờ; tách 2 rule vì trình duyệt không hiểu 1 trong 2 selector sẽ bỏ cả rule */
.auth-field input:-webkit-autofill, .auth-field input:-webkit-autofill:hover, .auth-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff !important; caret-color: #fff; -webkit-box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
    box-shadow: 0 0 0 1000px var(--field-bg) inset !important; transition: background-color 600000s 0s, color 600000s 0s; }
.auth-field input:autofill { -webkit-text-fill-color: #fff !important; caret-color: #fff; box-shadow: 0 0 0 1000px var(--field-bg) inset !important; }
.auth-pass { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.auth-eye { width: 44px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: #8ea4e0; font-size: 18px; text-decoration: none; }
.auth-eye:hover { color: #fff; }
.auth-submit { width: 100%; height: 50px; border: 0; border-radius: 12px; margin-top: 8px; font-weight: 600; font-size: 15px; color: #fff; letter-spacing: .01em;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, #2f7bff 55%, #00b3ff 100%);
    box-shadow: 0 12px 28px rgba(var(--primary-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.auth-submit:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 16px 34px rgba(var(--primary-rgb), .55); }
.auth-submit:focus-visible { outline: 2px solid #9fd8ff; outline-offset: 3px; }
.auth-errors { margin-top: 14px; font-size: 13px; color: #ff9a9a; }
.auth-errors ul { margin: 0; padding-left: 18px; }
.auth-errors ul:empty, .auth-errors .validation-summary-valid { display: none; }
.auth-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 18px;
    border-top: 1px solid rgba(160, 185, 255, .16); font-size: 12px; color: #8f9dc8; flex-wrap: wrap; }
.auth-meta .secure { display: inline-flex; align-items: center; gap: 6px; color: #7fe3c0; }

/* Màn khoá: một thẻ kính ở giữa, ảnh đại diện chữ cái đầu + tên + email người đang khoá */
.auth-wrap.auth-wrap-single { grid-template-columns: minmax(0, 440px); justify-content: center; }
.auth-lock { text-align: center; }
.auth-lock .auth-logo-sm { margin: 0 auto 22px; display: block; }
.auth-lock-avatar { position: relative; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 30px; font-weight: 700; color: #fff; letter-spacing: .02em;
    background: linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, #2f7bff 55%, #00b3ff 100%);
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .18), 0 14px 34px rgba(var(--primary-rgb), .45); }
.auth-lock-avatar .auth-lock-badge { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; font-size: 14px; color: #fff; background: #0b1433; border: 2px solid rgba(160, 185, 255, .35); }
.auth-lock-name { font-size: 20px; font-weight: 700; color: #fff; margin: 0; }
.auth-lock-email { font-size: 13px; color: #a9b6de; margin-top: 2px; }
.auth-lock-status { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 22px; padding: 5px 12px; border-radius: 999px; font-size: 12px;
    color: #ffd27a; background: rgba(247, 183, 49, .12); border: 1px solid rgba(247, 183, 49, .35); }
.auth-lock form { text-align: left; }
.auth-lock .auth-alt { display: inline-flex; align-items: center; gap: 6px; color: #9fc0ff; text-decoration: none; }
.auth-lock .auth-alt:hover { color: #fff; }
