/* Authentication gate and role-aware user administration. */
.auth-locked { display: none !important; }
.auth-gate {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 15%, rgba(57, 215, 255, .14), transparent 30%),
        radial-gradient(circle at 80% 85%, rgba(56, 227, 165, .09), transparent 30%),
        #06111b;
}
.auth-panel { width: min(960px, 100%); display: grid; grid-template-columns: minmax(260px, .85fr) minmax(360px, 1.15fr); overflow: hidden; border: 1px solid rgba(57, 215, 255, .28); border-radius: 18px; background: #0a1824; box-shadow: 0 30px 100px rgba(0, 0, 0, .55); }
.auth-brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 600px; padding: 42px; color: #e8f4fb; background: linear-gradient(150deg, rgba(15, 98, 126, .72), rgba(5, 24, 38, .98)), url('/frontend/auth-grid.svg'); }
.auth-brand-mark { width: 86px; height: 86px; display: grid; place-items: center; border: 2px solid #55dcff; border-radius: 18px; color: #55dcff; font-size: 1.45rem; font-weight: 900; letter-spacing: .08em; box-shadow: inset 0 0 26px rgba(57, 215, 255, .18); }
.auth-brand h1 { margin: 28px 0 12px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; }
.auth-brand p { max-width: 360px; color: #b9d1dd; }
.auth-brand small { color: #86a9ba; }
.auth-form-side { padding: clamp(26px, 5vw, 52px); color: #e8f2f7; background: #0a1824; }
.auth-tabs { margin-bottom: 26px; border-bottom: 1px solid rgba(143, 182, 204, .18); }
.auth-tabs .nav-link { color: #8eabb9; border: 0; border-bottom: 3px solid transparent; background: transparent; font-weight: 800; }
.auth-tabs .nav-link.active { color: #55dcff; border-bottom-color: #55dcff; background: transparent; }
.auth-form-side .form-label { color: #bcd0da; }
.auth-message { min-height: 24px; margin: 14px 0; color: #8db3c4; font-size: .86rem; }
.auth-message.error { color: #ff8290; }
.auth-message.success { color: #62e5ad; }
.auth-note { padding: 12px 14px; border: 1px solid rgba(255, 190, 72, .3); border-radius: 8px; color: #e7c782; background: rgba(255, 190, 72, .07); font-size: .82rem; }
.user-menu-button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 5px 11px; text-align: left; }
.user-menu-button strong, .user-menu-button small { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-button small { color: var(--muted); font-size: .68rem; }
.user-avatar { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(57, 215, 255, .42); border-radius: 50%; color: var(--cyan); font-size: .72rem; font-weight: 900; }
.profile-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.profile-summary > div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.profile-summary span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.profile-summary strong { display: block; margin-top: 4px; }
.password-required { padding: 12px 14px; border-left: 4px solid var(--amber); color: var(--amber); background: rgba(255, 183, 64, .09); }
.users-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.users-table td { vertical-align: middle; }
.users-table td:first-child strong, .users-table td:first-child small { display: block; }
.users-table td:first-child small { color: var(--muted); }
.user-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.users-message { min-height: 24px; color: var(--red); }
.user-progress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.user-progress-card { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); }
.user-progress-card span, .user-progress-card small { display: block; color: var(--muted); }
.user-progress-card strong { display: block; margin: 5px 0; color: var(--cyan); font-size: 1.65rem; }
body:not([data-user-role="admin"]) .airport-admin-only { display: none !important; }

@media (max-width: 820px) {
    .auth-panel { grid-template-columns: 1fr; }
    .auth-brand { min-height: 220px; padding: 26px; }
    .auth-brand p { margin-bottom: 0; }
    .user-progress-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .auth-gate { padding: 0; }
    .auth-panel { min-height: 100%; border: 0; border-radius: 0; }
    .auth-brand { min-height: 170px; }
    .auth-brand h1 { margin: 16px 0 8px; }
    .auth-brand small { display: none; }
    .auth-form-side { padding: 22px 18px; }
    .profile-summary, .user-progress-grid { grid-template-columns: 1fr; }
    .user-menu-button strong { max-width: 90px; }
}
