.auth-page {
    --auth-main: #2563eb;
    --auth-main-rgb: 37, 99, 235;
    --auth-soft: #eff6ff;
    --auth-dark: #1e3a8a;
    --auth-border: rgba(37, 99, 235, 0.16);
}

/* Landing */
.auth-landing {
    --auth-main: #7c3aed;
    --auth-main-rgb: 124, 58, 237;
    --auth-soft: #f5f3ff;
    --auth-dark: #4c1d95;
    --auth-border: rgba(124, 58, 237, 0.16);
}

/* Satdik */
.auth-satdik {
    --auth-main: #16a34a;
    --auth-main-rgb: 22, 163, 74;
    --auth-soft: #ecfdf5;
    --auth-dark: #065f46;
    --auth-border: rgba(22, 163, 74, 0.16);
}

/* Pengawas */
.auth-pengawas {
    --auth-main: #2563eb;
    --auth-main-rgb: 37, 99, 235;
    --auth-soft: #eff6ff;
    --auth-dark: #1e3a8a;
    --auth-border: rgba(37, 99, 235, 0.16);
}

/* Admin */
.auth-admin {
    --auth-main: #b45309;
    --auth-main-rgb: 180, 83, 9;
    --auth-soft: #fffbeb;
    --auth-dark: #78350f;
    --auth-border: rgba(180, 83, 9, 0.18);
}

.auth-page-wrap {
    min-height: 100vh;
    padding-top: 88px;
    padding-bottom: 32px;
    display: flex;
    align-items: center;
}

.auth-shell {
    width: 100%;
}

.auth-card {
    border: 0 !important;
    border-radius: 1.4rem !important;
    overflow: hidden !important;
    background: #fff;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12) !important;
}

.auth-card > .row {
    min-height: 610px;
}

/* KIRI: GAMBAR */
.auth-left {
    height: 100%;
    min-height: 610px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: radial-gradient(
            circle at 18% 20%,
            rgba(var(--auth-main-rgb), 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 85%,
            rgba(var(--auth-main-rgb), 0.08),
            transparent 30%
        ),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.auth-illustration {
    width: 100%;
    max-width: 780px;
    max-height: 540px;
    object-fit: contain;
    display: block;
}

/* KANAN: PANEL FORM / PORTAL */
.auth-panel {
    height: 100%;
    min-height: 610px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem !important;
    background: radial-gradient(
            circle at 100% 0%,
            rgba(var(--auth-main-rgb), 0.12),
            transparent 35%
        ),
        linear-gradient(180deg, rgba(var(--auth-main-rgb), 0.045), #ffffff 45%);
    border: 0 !important;
}

/* Hilangkan semua garis pemisah */
.auth-left,
.auth-panel,
.auth-card,
.auth-card .row,
.auth-card [class*="col-"] {
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
}

/* Header badge */
.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--auth-dark);
    background: var(--auth-soft);
    border: 1px solid var(--auth-border) !important;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.auth-role-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: var(--auth-main);
    box-shadow: 0 12px 24px rgba(var(--auth-main-rgb), 0.24);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.auth-title {
    color: #0f172a;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    color: #64748b;
    line-height: 1.55;
}

/* Form */
.auth-panel .form-label {
    color: #334155;
    font-weight: 700;
}

.auth-panel .form-control {
    border-color: #e2e8f0;
    min-height: 44px;
}

.auth-panel .form-control:focus {
    border-color: var(--auth-main);
    box-shadow: 0 0 0 0.22rem rgba(var(--auth-main-rgb), 0.16);
}

.auth-submit {
    background: var(--auth-main) !important;
    border-color: var(--auth-main) !important;
    color: #fff !important;
    font-weight: 800;
    min-height: 46px;
    box-shadow: 0 10px 22px rgba(var(--auth-main-rgb), 0.22);
}

.auth-submit:hover {
    color: #fff !important;
    filter: brightness(0.95);
}

/* Portal pilihan login */
.auth-entry {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a;
    text-decoration: none;
    background: #fff;
    transition: 0.2s ease;
}

.auth-entry:hover {
    transform: translateY(-2px);
    border-color: var(--auth-main) !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.auth-entry-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.auth-entry small {
    color: #64748b;
    line-height: 1.35;
}

.auth-entry-satdik .auth-entry-icon {
    background: #16a34a;
}

.auth-entry-pengawas .auth-entry-icon {
    background: #2563eb;
}

.auth-entry-admin .auth-entry-icon {
    background: #b45309;
}

/* Navbar */
.auth-navbar {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.auth-navbar .navbar-brand img {
    max-height: 44px;
    object-fit: contain;
}

/* Alert agar tidak terlalu menonjol */
.auth-alert {
    border-radius: 1rem;
}

/* Mobile */
@media (max-width: 1199.98px) {
    .auth-page-wrap {
        padding-top: 96px;
        padding-bottom: 24px;
    }

    .auth-card > .row {
        min-height: auto;
    }

    .auth-left {
        min-height: 260px;
        padding: 2rem 1.5rem 0.75rem;
    }

    .auth-illustration {
        max-height: 260px;
    }

    .auth-panel {
        min-height: auto;
        padding: 2rem !important;
    }
}

@media (max-width: 575.98px) {
    .auth-page-wrap {
        padding-top: 104px;
    }

    .auth-left {
        min-height: 210px;
        padding: 1.25rem;
    }

    .auth-illustration {
        max-height: 210px;
    }

    .auth-panel {
        padding: 1.5rem !important;
    }

    .auth-entry {
        align-items: flex-start;
    }
}
