:root {
    --sm-purple: #7950d9;
    --sm-purple-dark: #6039bb;
    --sm-blue: #3975d7;
    --sm-navy: #172554;
    --sm-text: #64748b;
}

/* =====================================
   BACKGROUND LOGIN GURU SCI MEDIA
===================================== */
.lms-login-page {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse; /*balik gambar di atas form dibawah */
    align-items: center;
    padding: 40px 0;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(255, 255, 255, 0.95) 0%,
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 20%,
            rgba(96, 165, 250, 0.25) 0%,
            transparent 30%
        ),
        radial-gradient(
            circle at 75% 90%,
            rgba(121, 80, 217, 0.14) 0%,
            transparent 30%
        ),
        linear-gradient(135deg, #f4f8ff 0%, #e5efff 48%, #cbdfff 100%);

    font-family: "Inter", sans-serif;
}

/* Dekorasi lingkaran kanan atas */
.lms-login-page::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    top: -230px;
    right: -120px;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: 0;
}

/* Dekorasi lingkaran kiri bawah */
.lms-login-page::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    background: rgba(121, 80, 217, 0.07);
    pointer-events: none;
    z-index: 0;
}

/* Pastikan konten berada di atas dekorasi */
.lms-login-page .container {
    max-width: 1160px;
    position: relative;
    z-index: 2;
}

.lms-login-page .row {
    min-height: 600px;
}

/* =========================
       LOGIN CARD
    ========================= */

.login-info-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-box-container {
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 38px 32px;

    border-radius: 24px;

    background: rgba(255, 255, 255, 0.88);

    border: 1px solid rgba(255, 255, 255, 0.95);

    box-shadow:
        0 20px 60px rgba(37, 77, 140, 0.12),
        0 5px 15px rgba(37, 77, 140, 0.04);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition: all 0.3s ease;
}

.login-box-container:hover {
    transform: translateY(-3px);

    box-shadow:
        0 28px 70px rgba(37, 77, 140, 0.16),
        0 8px 20px rgba(37, 77, 140, 0.05);
}

/* BRAND */

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.login-brand-logo {
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
    border-radius: 13px;
    background: linear-gradient(135deg, #3975d7, #7950d9);
    box-shadow: 0 7px 18px rgba(121, 80, 217, 0.2);
}

.login-brand-text {
    text-align: left;
}

.login-brand-text strong {
    display: block;
    color: var(--sm-navy);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.login-brand-text small {
    display: block;
    color: #94a3b8;
    font-size: 8px;
    letter-spacing: 1.5px;
}

/* AVATAR */

.login-box-container .avatar-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #9564f6, #6941ca);
    color: white;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(121, 80, 217, 0.25);
}

.login-box-container h2 {
    color: var(--sm-navy);
    font-size: 23px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* =========================
       FORM INPUT
    ========================= */

.login-form-group {
    margin-bottom: 15px;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.form-control-icon-group {
    position: relative;
}

.form-control-icon-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa8bd;
    font-size: 15px;
    z-index: 2;
    pointer-events: none;
}

.login-box-container .form-control {
    width: 100%;
    height: 38px;
    padding: 0 43px;
    border: 1px solid #e1e7f0;
    border-radius: 12px !important;
    background: #f9faff;
    color: #334155;
    font-size: 13px;
    outline: none;
    transition: 0.25s;
}

.login-box-container .form-control:focus {
    background: white;
    border-color: var(--sm-purple) !important;
    box-shadow: 0 0 0 4px rgba(121, 80, 217, 0.1);
}

.login-box-container .form-control::placeholder {
    color: #a5b0c0;
}

/* SHOW PASSWORD */

.toggle-password {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 15px;
    z-index: 3;
    padding: 3px;
}

.toggle-password:hover {
    color: var(--sm-purple);
}

.login-form-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 3px 0 22px;
}

.login-form-extra label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 11px;
    cursor: pointer;
    /* margin: 0; */
}

.login-form-extra input {
    accent-color: var(--sm-purple);
}

/* =========================
       BUTTON LOGIN
    ========================= */

.btn-submit-login {
    width: 100%;
    height: 38px;
    border: none;
    border-radius: 12px !important;
    color: white;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(100deg, #7043c8, #8b5cf6);
    box-shadow: 0 9px 22px rgba(109, 40, 217, 0.23);
    transition: 0.3s;
    cursor: pointer;
}

.btn-submit-login:hover {
    color: white;
    background: linear-gradient(100deg, #5b32b2, #7043c8);
    transform: translateY(-2px);
    box-shadow: 0 13px 27px rgba(109, 40, 217, 0.3);
}

.btn-submit-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ALERT */

#alert-login {
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12px;
    margin-bottom: 17px;
}

/* FOOTER */

.login-footer-text {
    margin-top: 25px;
    color: #7b879a;
    text-align: center;
    font-size: 11px;
    line-height: 1.8;
}

.login-footer-text a {
    color: var(--sm-purple);
    font-weight: 700;
    text-decoration: none;
}

.login-footer-text a:hover {
    text-decoration: underline;
}

.login-footer-text .support {
    color: #94a3b8;
    font-size: 11px;
}

/* =========================
       ILLUSTRATION
    ========================= */

.login-illustration-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.illustration-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 17px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.6);
    color: #6941ca;
    border: 1px solid rgba(255, 255, 255, 0.8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    margin-bottom: 20px;
}

.illustration-heading {
    text-align: center;
    color: var(--sm-navy);
    font-size: 35px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.illustration-heading span {
    color: var(--sm-purple);
}

.illustration-description {
    max-width: 440px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* .login-illustration-section img {
        display: block;
        position: relative;
        width: 100%;
        max-width: 570px;
        height: auto;
        z-index: 1;
        filter: drop-shadow(0 20px 22px rgba(55,80,140,.10));
        transition: .4s ease;
    }

    .login-illustration-section img:hover {
        transform: translateY(-7px);
    } */

.login-illustration-section img {
    display: block;
    position: relative;
    width: 100%;
    max-width: 570px;
    height: auto;
    z-index: 1;
    filter: drop-shadow(0 22px 25px rgba(45, 85, 150, 0.15));
    transition: transform 0.4s ease;
}

.login-illustration-section img:hover {
    transform: translateY(-7px) scale(1.015);
}

/* Badge portal guru */
.illustration-badge {
    box-shadow: 0 8px 25px rgba(55, 95, 160, 0.08);
}

/* Fitur di bawah ilustrasi */
.illustration-feature {
    box-shadow: 0 5px 15px rgba(55, 95, 160, 0.05);
    transition: all 0.25s ease;
}

.illustration-feature:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.9);
}

.illustration-features {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.illustration-feature {
    padding: 10px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #52627f;
    font-size: 10px;
    font-weight: 600;
}

/* HELP LINKS */

.bottom-help-links {
    margin-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
}

.bottom-help-links a {
    font-weight: 700;
    text-decoration: none;
}

.bottom-help-links a:hover {
    text-decoration: underline;
}

/* =========================
       RESPONSIVE TABLET
    ========================= */

@media (max-width: 991px) {
    .lms-login-page .row {
        min-height: auto;
    }

    .login-illustration-section {
        margin-top: 45px;
    }

    .login-illustration-section img {
        max-width: 450px;
    }

    .illustration-heading {
        font-size: 29px;
    }
}

/* =========================
       RESPONSIVE MOBILE
    ========================= */

@media (max-width: 767px) {
    .lms-login-page {
        padding: 20px 0px;
    }

    .lms-login-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .login-box-container {
        max-width: 100%;
        padding: 30px 22px;
    }

    .login-illustration-section {
        margin-top: 35px;
        margin-bottom: 40px;
    }

    .login-illustration-section img {
        max-width: 350px;
    }

    .illustration-heading {
        font-size: 26px;
    }

    .illustration-description {
        font-size: 12px;
    }

    .illustration-features {
        gap: 7px;
    }

    .illustration-feature {
        font-size: 9px;
        padding: 8px 10px;
    }
}

@media (max-width: 400px) {
    /* .lms-login-page .container {
            padding-left: 8px;
            padding-right: 8px;
        } */

    .login-box-container {
        padding: 25px 18px;
    }

    .login-box-container h2 {
        font-size: 21px;
    }

    .illustration-heading {
        font-size: 23px;
    }
}
