/* ==========================================================================
   LOGIN THEMES - ASESMEN CBT (Gaya Modern LaporBOS & Glassmorphism)
   ========================================================================== */

:root {
    --auth-primary: #002b66;
    --auth-primary-hover: #001d47;
    --auth-primary-rgb: 0, 43, 102;
    --auth-accent: #2563eb;
    --auth-accent-hover: #1d4ed8;
    --auth-teal: #0d9488;
    --auth-surface: #ffffff;
    --auth-bg-soft: #f8fafc;
    --auth-border: #e2e8f0;
    --auth-text-main: #0f172a;
    --auth-text-muted: #64748b;
    --auth-radius-lg: 16px;
    --auth-radius-md: 12px;
    --auth-radius-sm: 8px;
    --auth-shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.15);
    --auth-shadow-card: 0 25px 60px -15px rgba(0, 25, 75, 0.25);
    --auth-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body.auth-theme-active {
    font-family: var(--auth-font);
    background-color: var(--auth-bg-soft);
    color: var(--auth-text-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   ROLE SELECTOR (Segmented Toggle Tab: Siswa vs Guru/Staf)
   -------------------------------------------------------------------------- */
.auth-role-tabs {
    display: flex;
    background: #edf2f7;
    padding: 4px;
    border-radius: var(--auth-radius-md);
    margin-bottom: 22px;
    position: relative;
    border: 1px solid #e2e8f0;
}

.auth-role-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--auth-text-muted);
    background: transparent;
    border: none;
    border-radius: calc(var(--auth-radius-md) - 3px);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    user-select: none;
}

.auth-role-btn:hover {
    color: var(--auth-text-main);
}

.auth-role-btn.active {
    background: #ffffff;
    color: var(--auth-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-role-btn i {
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   INPUT FIELD WITH ICON & PASSWORD TOGGLE
   -------------------------------------------------------------------------- */
.auth-input-group {
    position: relative;
    margin-bottom: 18px;
}

.auth-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--auth-text-main);
    margin-bottom: 6px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-input {
    width: 100%;
    padding: 11px 42px 11px 44px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--auth-text-main);
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--auth-radius-sm);
    transition: all 0.2s ease;
    outline: none;
}

.auth-input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #ffffff;
}

.auth-input:focus ~ .auth-input-icon {
    color: var(--auth-accent);
}

.auth-password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--auth-radius-sm);
    transition: color 0.2s;
}

.auth-password-toggle:hover {
    color: var(--auth-text-main);
}

/* --------------------------------------------------------------------------
   SUBMIT BUTTON & SECURITY BADGE
   -------------------------------------------------------------------------- */
.auth-btn-submit {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
    background: linear-gradient(135deg, var(--auth-primary) 0%, #1e40af 100%);
    border: none;
    border-radius: var(--auth-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 43, 102, 0.25);
    margin-top: 8px;
}

.auth-btn-submit:hover {
    background: linear-gradient(135deg, var(--auth-primary-hover) 0%, #1d4ed8 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(0, 43, 102, 0.32);
    color: #ffffff;
}

.auth-btn-submit:active {
    transform: translateY(0);
}

.auth-btn-submit i {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.auth-btn-submit:hover i {
    transform: translateX(4px);
}

.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 12.5px;
    color: var(--auth-text-muted);
    text-align: center;
}

.auth-security-note i {
    color: #10b981;
    font-size: 16px;
}

.auth-alert {
    padding: 12px 16px;
    border-radius: var(--auth-radius-sm);
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    line-height: 1.5;
}

.auth-alert i {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==========================================================================
   TEMA 1: LAPORBOS SPLIT SCREEN (.theme-laporbos-split)
   - Kolom Sebelah Kiri: Visual Showcase (BLUR EFEK KACA TIPIS)
   - Kolom Sebelah Kanan: Form Login (Area luar jernih, PANEL LOGIN blur kaca)
   ========================================================================== */
.theme-laporbos-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(430px, 46%);
    background-color: #0b1a30;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* KOLOM KIRI: VISUAL SHOWCASE DENGAN BLUR EFEK KACA TIPIS & DESAIN ELEGAN */
.split-visual-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 54px;
    overflow-y: auto;
    overflow-x: hidden;
    /* BLUR EFEK KACA TIPIS & LEMBUT */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(240, 246, 255, 0.28) 100%) !important;
    backdrop-filter: blur(10px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(125%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-left: none;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.04);
    z-index: 1;
    box-sizing: border-box;
}

.split-visual-wrapper {
    position: relative;
    z-index: 2;
    max-width: 620px;
    width: 100%;
}

/* DUAL BRANDING HEADER (LOGO APLIKASI & LOGO SEKOLAH) */
.split-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.split-brand-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.split-brand-box:hover {
    transform: translateY(-1.5px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07);
}

.brand-img-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.85);
    flex-shrink: 0;
}

.brand-img-fluid {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-icon-fallback {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.app-fallback {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #ffffff;
}

.school-fallback {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
    color: #ffffff;
}

.brand-text-meta {
    display: flex;
    flex-direction: column;
}

.brand-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 5px;
    width: fit-content;
}

.app-pill {
    background: #dbeafe;
    color: #1e40af;
}

.school-pill {
    background: #e0e7ff;
    color: #4338ca;
}

.brand-heading-name {
    font-size: 13.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 2px 0 0 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.split-brand-divider {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
}

.divider-line {
    width: 14px;
    height: 1.5px;
    background: rgba(148, 163, 184, 0.45);
    border-radius: 2px;
}

.divider-badge {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    color: #64748b;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.85);
}

.split-hero-body {
    margin-bottom: 24px;
}

.split-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: rgba(239, 246, 255, 0.85);
    border: 1px solid rgba(191, 219, 254, 0.9);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    margin-bottom: 14px;
}

.live-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    position: relative;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseDot 2s infinite;
}

@keyframes livePulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.split-hero-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.hero-highlight {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-hero-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    margin: 0;
    max-width: 580px;
}

.split-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.glass-feature-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.glass-feature-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.feature-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
}

.icon-shield { background: #eff6ff; color: #1d4ed8; }
.icon-speed { background: #ecfdf5; color: #059669; }
.icon-device { background: #eef2ff; color: #4f46e5; }

.feature-text-content h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.feature-text-content p {
    font-size: 11.5px;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
}

.split-tag-capsules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

.tag-capsule:hover {
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
}

.tag-capsule i {
    color: #2563eb;
    font-size: 13px;
}

.split-visual-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 12px;
    color: #475569;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.footer-live-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 11.5px;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.55);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.status-indicator-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
}

.footer-copyright-text {
    font-size: 11.5px;
    color: #64748b;
}

/* KOLOM KANAN: FORM LOGIN */
.split-form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 32px;
    min-height: 100vh;
    box-sizing: border-box;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-left: none;
    border-right: none;
    position: relative;
    z-index: 2;
}

.split-glass-card {
    width: min(420px, 100%);
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(8px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: var(--auth-radius-lg);
    padding: 38px 32px;
    box-shadow: 0 16px 36px -8px rgba(0, 20, 60, 0.16);
}

.split-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--auth-primary);
    margin-bottom: 24px;
}

.split-brand-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-center-img {
    height: 48px;
    width: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #ffffff;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.split-brand-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--auth-primary), #2563eb);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 43, 102, 0.2);
}

.split-brand-info {
    display: flex;
    flex-direction: column;
}

.split-brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--auth-primary);
    line-height: 1.2;
}

.split-brand-school {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--auth-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.split-glass-card h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--auth-text-main);
    margin: 0 0 6px 0;
}

.split-glass-card .split-desc {
    font-size: 13.5px;
    color: var(--auth-text-muted);
    margin: 0 0 20px 0;
    line-height: 1.55;
}

.split-glass-card .auth-input {
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid rgba(203, 213, 225, 0.85);
}

.split-glass-card .auth-input:focus {
    background: #ffffff;
    border-color: var(--auth-accent);
}

/* ==========================================================================
   TEMA 2: LAPORBOS GLASSMORPHISM CARD (.theme-laporbos-card)
   - Kartu melayang di TENGAH layar
   - Efek blur tipis kaca transparan (Glassmorphism Subtle Blur)
   - Tanpa kolom visual
   ========================================================================== */
.theme-laporbos-card {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 32px 16px;
    background-color: #0b1a30;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    box-sizing: border-box;
}

.card-bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.card-bg-overlay.overlay-dark {
    /* Wallpaper tetap jernih dan tajam dengan pencahayaan seimbang */
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.18) 0%, rgba(3, 7, 18, 0.38) 100%);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.card-bg-overlay.overlay-soft {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.card-bg-overlay.overlay-gradient {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.22) 0%, rgba(15, 23, 42, 0.36) 100%);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.card-bg-overlay.overlay-none {
    background: transparent;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.card-login-box {
    position: relative;
    z-index: 2;
    width: min(440px, 100%);
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--auth-radius-lg);
    box-shadow: 0 16px 40px -8px rgba(0, 20, 60, 0.22);
    padding: 38px 34px;
    box-sizing: border-box;
    animation: authCardFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-brand-center {
    text-align: center;
    margin-bottom: 24px;
}

.card-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 12px;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
}

.card-brand-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--auth-primary);
    letter-spacing: -0.02em;
    margin: 0;
}

.card-brand-sub {
    font-size: 12px;
    color: var(--auth-text-muted);
    margin-top: 4px;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 991px) {
    .theme-laporbos-split {
        grid-template-columns: 1fr;
    }
    .split-visual-pane {
        display: none;
    }
    .split-form-pane {
        padding: 36px 20px;
    }
    .card-login-box {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .split-form-wrap h1 {
        font-size: 24px;
    }
    .auth-role-btn {
        font-size: 12.5px;
        padding: 8px 10px;
    }
}
