:root {
    --sm-navy: #0f1b3d;
    --sm-purple: #8b5cf6;
    --sm-purple-dark: #6d28d9;
    --sm-orange: #f57c0b;
    --sm-orange-dark: #e06c00;
    --sm-text: #475569;
    --lms-soft: #eff6ff;
}

/* .login-hero {
        min-height: 100vh;
        padding: 110px 0 60px;
        font-family: 'Inter', system-ui, sans-serif;
        background: linear-gradient(135deg, #f5f1ff 0%, #ece9ff 55%, #e4e6ff 100%);
        background: linear-gradient(180deg, var(--lms-soft), #B9D4F7);
        display: flex;
        align-items: center;
    } */

.login-hero {
    min-height: 100vh;
    padding: 110px 0 60px;
    font-family: "Inter", system-ui, sans-serif;

    /* Background biru modern */
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(59, 130, 246, 0.22),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(14, 165, 233, 0.2),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(255, 255, 255, 0.85),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            #eff6ff 0%,
            #dbeafe 40%,
            #bfdbfe 75%,
            #e0f2fe 100%
        );

    display: flex;
    align-items: center;

    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Ornamen lingkaran biru di background */
.login-hero::before {
    content: "";
    position: absolute;
    width: 650px;
    height: 650px;
    right: -180px;
    top: -220px;

    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(96, 165, 250, 0.12) 45%,
        transparent 70%
    );

    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Ornamen cahaya bagian bawah */
.login-hero::after {
    content: "";
    position: absolute;
    width: 550px;
    height: 550px;
    left: -180px;
    bottom: -250px;

    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.18) 0%,
        rgba(147, 197, 253, 0.12) 50%,
        transparent 72%
    );

    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

/* Pastikan konten berada di atas ornamen */
.login-hero > .container {
    position: relative;
    z-index: 1;
}

.login-hero .container::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -100px;
    left: 45%;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);

    pointer-events: none;
}

.login-hero .container::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    bottom: -70px;
    right: 5%;

    border-radius: 50%;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);

    pointer-events: none;
}

.login-hero .hero-img {
    max-height: 460px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(30, 64, 175, 0.12));
    transition: transform 0.4s ease;
}

.login-hero .hero-img:hover {
    transform: translateY(-5px);
}

.login-hero .badge-pill-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border: 1px solid #d8ccf7;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--sm-purple-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.login-hero h1 {
    margin: 1.25rem 0 1rem;
    font-size: clamp(2.2rem, 3.6vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--sm-navy);
}

.login-hero h1 span {
    color: var(--sm-purple);
}

.login-hero .desc {
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--sm-text);
}

.login-hero .checks {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}
.login-hero .checks li {
    display: flex;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
    color: var(--sm-text);
    font-weight: 500;
}
.login-hero .checks li::before {
    content: "✓";
    color: var(--sm-purple);
    font-weight: 700;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        background 0.15s;
}
.btn-login:hover {
    transform: translateY(-2px);
}

.btn-guru {
    background: var(--sm-orange);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(245, 124, 11, 0.35);
}
.btn-guru:hover {
    background: var(--sm-orange-dark);
}

.btn-siswa {
    background: var(--sm-purple);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(139, 92, 246, 0.35);
}
.btn-siswa:hover {
    background: var(--sm-purple-dark);
}

.login-hero .help {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--sm-text);
}
.login-hero .help a {
    color: var(--sm-purple-dark);
    font-weight: 600;
}

.login-hero .hero-img {
    max-height: 460px;
    width: auto;
}

/* ==============================
   RESPONSIVE LOGIN MOBILE
============================== */

.login-hero {
    min-height: 100vh;
    padding: 90px 0 45px;
}

/* Gambar utama */
.login-hero .hero-img {
    max-width: 100%;
    max-height: 460px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
}

/* Tablet dan HP */
@media (max-width: 991.98px) {
    .login-hero {
        padding: 75px 0 35px;
    }

    .login-hero .hero-img {
        max-height: 360px;
        max-width: 90%;
    }

    .login-hero .badge-pill-sm {
        font-size: 0.72rem;
        padding: 0.4rem 0.9rem;
    }

    .login-hero h1 {
        font-size: 2.3rem;
        margin: 1rem 0 0.8rem;
    }

    .login-hero .desc {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Khusus HP */
@media (max-width: 575.98px) {
    .login-hero {
        min-height: 100vh;
        padding: 65px 0 30px;
        align-items: flex-start;
    }

    .login-hero .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Atur jarak gambar */
    .login-hero .col-lg-6.order-1 {
        margin-bottom: 12px !important;
    }

    .login-hero .hero-img {
        width: 100%;
        max-width: 310px;
        max-height: 280px;
        object-fit: contain;
    }

    /* Badge login */
    .login-hero .badge-pill-sm {
        font-size: 0.65rem;
        padding: 0.35rem 0.75rem;
        gap: 0.3rem;
    }

    /* Judul */
    .login-hero h1 {
        font-size: 1.85rem;
        line-height: 1.15;
        margin: 0.85rem 0 0.7rem;
        letter-spacing: -0.04em;
    }

    /* Deskripsi */
    .login-hero .desc {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.6rem;
    }

    /* Checklist */
    .login-hero .checks {
        margin: 0.5rem 0 1rem;
        font-size: 0.82rem;
    }

    .login-hero .checks li {
        gap: 0.45rem;
        margin-bottom: 0.35rem;
    }

    /* Tombol login */
    .btn-login {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .login-hero .row .d-flex {
        gap: 0.6rem !important;
    }

    /* Bantuan */
    .login-hero .help {
        margin-top: 1rem;
        font-size: 0.75rem;
        line-height: 1.7;
    }
}

/* HP layar pendek */
@media (max-width: 575.98px) and (max-height: 700px) {
    .login-hero {
        padding-top: 45px;
    }

    .login-hero .hero-img {
        max-height: 230px;
        max-width: 270px;
    }

    .login-hero .col-lg-6.order-1 {
        margin-bottom: 5px !important;
    }

    .login-hero h1 {
        font-size: 1.7rem;
        margin: 0.6rem 0;
    }
}
