:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --text-dark: #17233c;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-body,
body.welcome-body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 45%, #f8fafc 100%);
    position: relative;
    overflow-x: hidden;
}

body.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

body.auth-body::before,
body.welcome-body::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    top: -130px;
    left: -120px;
    filter: blur(10px);
}

body.auth-body::after,
body.welcome-body::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.10);
    bottom: -140px;
    right: -120px;
    filter: blur(10px);
}

.auth-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-header {
    text-align: center;
    padding: 38px 34px 12px;
}

.auth-logo {
    width: 86px;
    height: 86px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.auth-header h2 {
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 0;
}

.auth-body-content {
    padding: 16px 34px 38px;
}

.auth-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.auth-input-group {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f8fafc;
}

.auth-input-group .input-group-text {
    border: none;
    background: var(--primary-soft);
    color: var(--primary);
    padding-left: 16px;
    padding-right: 16px;
}

.auth-input-group .form-control {
    height: 52px;
    border: none;
    background: #f8fafc;
    box-shadow: none !important;
}

.auth-input-group .form-control:focus {
    background: white;
}

.auth-btn {
    height: 52px;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    transition: 0.2s ease-in-out;
}

.auth-btn:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.auth-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--primary-hover);
}

.alert {
    border: none;
    border-radius: 14px;
}

/* Welcome */
.welcome-nav {
    position: relative;
    z-index: 10;
    padding: 26px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-brand {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.welcome-nav-actions {
    display: flex;
    gap: 10px;
}

.welcome-btn {
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
}

.welcome-btn-primary {
    background: var(--primary);
    color: white;
}

.welcome-btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

.welcome-btn-light {
    background: white;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.welcome-btn-light:hover {
    color: var(--primary-hover);
}

.welcome-hero {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 92px);
    display: flex;
    align-items: center;
    padding: 40px 36px 70px;
}

.welcome-hero-card {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    padding: 52px;
}

.welcome-badge {
    display: inline-block;
    background: var(--primary-soft);
    color: var(--primary);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 18px;
}

.welcome-title {
    font-size: 46px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 18px;
}

.welcome-subtitle {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 28px;
}

.welcome-feature {
    display: flex;
    align-items: start;
    gap: 14px;
    margin-bottom: 16px;
}

.welcome-feature-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.welcome-illustration {
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 28px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 120px;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.25);
}

@media (max-width: 768px) {
    .welcome-nav {
        padding: 22px;
        flex-direction: column;
        gap: 14px;
    }

    .welcome-hero {
        padding: 24px 18px 50px;
    }

    .welcome-hero-card {
        padding: 30px;
    }

    .welcome-title {
        font-size: 34px;
    }

    .welcome-illustration {
        min-height: 240px;
        font-size: 76px;
        margin-top: 28px;
    }

    /* ===============================
   DARK THEME AUTH & WELCOME
   Untuk Login, Register, Welcome
================================ */

    /* ===== AUTH BODY LOGIN / REGISTER ===== */

    .auth-body {
        min-height: 100vh !important;
        background:
            radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 30%),
            radial-gradient(circle at bottom left, rgba(30, 64, 175, 0.16), transparent 35%),
            linear-gradient(135deg, #050814 0%, #08111f 45%, #050814 100%) !important;
        color: #f8fbff !important;
    }

    /* Card login/register */
    .auth-card {
        background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
        border: 1px solid #263348 !important;
        color: #f8fbff !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
    }

    /* Header auth */
    .auth-header h2 {
        color: #f8fbff !important;
    }

    .auth-header p {
        color: #9caec7 !important;
    }

    /* Icon besar auth */
    .auth-logo {
        background: linear-gradient(135deg, #2563eb, #1e40af) !important;
        color: #ffffff !important;
        box-shadow: 0 18px 40px rgba(37, 99, 235, 0.30) !important;
    }

    /* Label */
    .auth-label {
        color: #f8fbff !important;
        font-weight: 700 !important;
    }

    /* Input group */
    .auth-input-group .input-group-text {
        background: rgba(59, 130, 246, 0.12) !important;
        border: 1px solid #263348 !important;
        color: #93c5fd !important;
    }

    .auth-input-group .form-control {
        background: #0b1324 !important;
        border: 1px solid #263348 !important;
        color: #f8fbff !important;
    }

    .auth-input-group .form-control::placeholder {
        color: #7f91aa !important;
    }

    .auth-input-group .form-control:focus {
        background: #101827 !important;
        color: #ffffff !important;
        border-color: #3b82f6 !important;
        box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18) !important;
    }

    /* Button login/register */
    .auth-btn {
        background: linear-gradient(135deg, #2563eb, #1e40af) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28) !important;
    }

    .auth-btn:hover {
        background: linear-gradient(135deg, #1d4ed8, #1e3a8a) !important;
        color: #ffffff !important;
    }

    /* Link auth */
    .auth-link {
        color: #60a5fa !important;
        font-weight: 800 !important;
    }

    .auth-link:hover {
        color: #93c5fd !important;
    }

    /* Text bawah form */
    .auth-body-content,
    .auth-body-content .text-center {
        color: #cbd7ea !important;
    }

    /* Alert */
    .auth-body .alert-danger {
        background: rgba(239, 68, 68, 0.14) !important;
        border: 1px solid rgba(239, 68, 68, 0.28) !important;
        color: #fca5a5 !important;
        border-radius: 14px !important;
    }

    /* ===== WELCOME PAGE ===== */

    .welcome-body {
        min-height: 100vh !important;
        background:
            radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 30%),
            radial-gradient(circle at bottom left, rgba(30, 64, 175, 0.16), transparent 35%),
            linear-gradient(135deg, #050814 0%, #08111f 45%, #050814 100%) !important;
        color: #f8fbff !important;
    }

    /* Navbar welcome */
    .welcome-nav {
        background: transparent !important;
    }

    .welcome-brand {
        color: #f8fbff !important;
        font-weight: 800 !important;
    }

    .welcome-brand::after {
        content: "";
        display: block;
        width: 54px;
        height: 4px;
        margin-top: 8px;
        border-radius: 999px;
        background: linear-gradient(90deg, #2563eb, transparent);
    }

    /* Hero card */
    .welcome-hero-card {
        background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
        border: 1px solid #263348 !important;
        color: #f8fbff !important;
        box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46) !important;
    }

    /* Badge */
    .welcome-badge {
        background: rgba(59, 130, 246, 0.16) !important;
        color: #bfdbfe !important;
        border: 1px solid rgba(59, 130, 246, 0.24) !important;
    }

    /* Judul dan subtitle */
    .welcome-title {
        color: #f8fbff !important;
    }

    .welcome-subtitle {
        color: #9caec7 !important;
    }

    /* Feature */
    .welcome-feature {
        color: #f8fbff !important;
    }

    .welcome-feature .fw-bold {
        color: #f8fbff !important;
    }

    .welcome-feature .text-muted {
        color: #9caec7 !important;
    }

    .welcome-feature-icon {
        background: rgba(59, 130, 246, 0.14) !important;
        color: #93c5fd !important;
    }

    /* Ilustrasi bus */
    .welcome-illustration {
        background: linear-gradient(135deg, #1e40af, #3b82f6) !important;
        color: #ffffff !important;
        box-shadow: 0 24px 60px rgba(37, 99, 235, 0.32) !important;
    }

    /* Button welcome */
    .welcome-btn-primary {
        background: linear-gradient(135deg, #2563eb, #1e40af) !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26) !important;
    }

    .welcome-btn-primary:hover {
        background: linear-gradient(135deg, #1d4ed8, #1e3a8a) !important;
        color: #ffffff !important;
    }

    .welcome-btn-light {
        background: #111827 !important;
        color: #f8fbff !important;
        border: 1px solid #263348 !important;
    }

    .welcome-btn-light:hover {
        background: #152033 !important;
        color: #ffffff !important;
    }

    /* Extra fallback agar tidak ada bagian putih */
    .auth-body .bg-white,
    .welcome-body .bg-white {
        background: #111827 !important;
    }

    .auth-body .text-dark,
    .welcome-body .text-dark {
        color: #f8fbff !important;
    }

    .auth-body .text-muted,
    .welcome-body .text-muted {
        color: #9caec7 !important;
    }
}

/* ===============================
   FORCE DARK AUTH FIX
   WAJIB DI LUAR @media
================================ */

body.auth-body,
body.welcome-body {
    min-height: 100vh !important;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(30, 64, 175, 0.18), transparent 35%),
        linear-gradient(135deg, #050814 0%, #08111f 45%, #050814 100%) !important;
    color: #f8fbff !important;
}

body.auth-body::before,
body.welcome-body::before {
    background: rgba(37, 99, 235, 0.08) !important;
}

body.auth-body::after,
body.welcome-body::after {
    background: rgba(30, 64, 175, 0.14) !important;
}

.auth-card,
.welcome-hero-card {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border: 1px solid #263348 !important;
    color: #f8fbff !important;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48) !important;
}

.auth-header h2,
.auth-label,
.welcome-title,
.welcome-brand,
.welcome-feature .fw-bold {
    color: #f8fbff !important;
}

.auth-header p,
.welcome-subtitle,
.welcome-feature .text-muted,
.auth-body-content,
.auth-body-content .text-center {
    color: #9caec7 !important;
}

.auth-logo,
.welcome-illustration,
.auth-btn,
.welcome-btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af) !important;
    color: #ffffff !important;
    border: none !important;
}

.auth-input-group {
    background: #0b1324 !important;
    border: 1px solid #263348 !important;
}

.auth-input-group .input-group-text {
    background: rgba(59, 130, 246, 0.12) !important;
    border: none !important;
    color: #93c5fd !important;
}

.auth-input-group .form-control {
    background: #0b1324 !important;
    border: none !important;
    color: #f8fbff !important;
}

.auth-input-group .form-control::placeholder {
    color: #7f91aa !important;
}

.auth-input-group .form-control:focus {
    background: #101827 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.auth-link {
    color: #60a5fa !important;
    font-weight: 800 !important;
}

.auth-link:hover {
    color: #93c5fd !important;
}

.welcome-badge {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #bfdbfe !important;
    border: 1px solid rgba(59, 130, 246, 0.24) !important;
}

.welcome-feature-icon {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #93c5fd !important;
}

.welcome-btn-light {
    background: #111827 !important;
    color: #f8fbff !important;
    border: 1px solid #263348 !important;
}

.welcome-btn-light:hover {
    background: #152033 !important;
    color: #ffffff !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.14) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
}