        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        :root {
            --primary: #1769e8;
            --primary-dark: #104fc5;
            --navy: #12366b;
            --text: #172f55;
            --muted: #718096;
            --border: #dce5ef;
        }

        body {
            min-height: 100vh;
            min-height: 100dvh;
            font-family: Arial, sans-serif;
            background: #eff6ff;
            color: var(--text);
            overflow-x: hidden;
        }

        .login-page {
            min-height: 100vh;
            min-height: 100dvh;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 40px 20px 30px;
            overflow: hidden;
            isolation: isolate;
            background:
                radial-gradient(ellipse at 50% 35%, #ffffff 0%, #f5f9ff 55%, #e8f2ff 100%);
        }

        /* Dekorasi background */

        .shape {
            position: absolute;
            z-index: -1;
            pointer-events: none;
        }

        .shape-top {
            top: -120px;
            left: -120px;
            width: 330px;
            height: 260px;
            background: linear-gradient(135deg, #1684f5, #45b8f7);
            border-radius: 35% 0 65% 0;
            transform: rotate(-12deg);
        }

        .shape-bottom {
            bottom: -110px;
            right: -100px;
            width: 350px;
            height: 250px;
            background: linear-gradient(135deg, #55b9fa, #1264e9);
            border-radius: 70% 0 0 0;
        }

        /* Header */

        .brand {
            width: 100%;
            max-width: 480px;
            text-align: center;
            margin: 15px auto 34px;
        }

        .brand-icon {
            width: 100px;
            height: 85px;
            margin: 0 auto 15px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: var(--primary);
        }

        .brand-icon svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 8px 12px rgba(23, 105, 232, .15));
        }

        .brand h1 {
            color: var(--navy);
            font-size: 43px;
            font-weight: 800;
            letter-spacing: 2px;
            line-height: 1.1;
        }

        .brand p {
            color: #244a7f;
            font-size: 17px;
            margin-top: 8px;
        }

        .brand-line {
            width: 70px;
            height: 5px;
            border-radius: 10px;
            background: var(--primary);
            margin: 20px auto 0;
        }

        /* Login Card */

        .login-card {
            width: 100%;
            max-width: 460px;
            padding: 34px 30px;
            background: rgba(255, 255, 255, .94);
            border: 1px solid rgba(255, 255, 255, .9);
            border-radius: 30px;
            box-shadow: 0 20px 55px rgba(37, 91, 158, .13);
        }

        .login-heading {
            margin-bottom: 28px;
        }

        .login-heading h2 {
            color: var(--navy);
            font-size: 29px;
            font-weight: 750;
            margin-bottom: 10px;
        }

        .login-heading p {
            color: #647b99;
            font-size: 16px;
            line-height: 1.5;
        }

        /* Form */

        .form-group {
            margin-bottom: 19px;
        }

        .form-group label {
            display: block;
            color: var(--navy);
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 9px;
        }

        .input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            width: 23px;
            height: 23px;
            color: var(--primary);
            pointer-events: none;
        }

        .input-wrapper input {
            width: 100%;
            height: 58px;
            padding: 0 48px;
            border: 1.5px solid var(--border);
            border-radius: 14px;
            outline: none;
            background: #fff;
            color: var(--text);
            font-size: 16px;
            transition: .2s ease;
        }

        .input-wrapper input::placeholder {
            color: #a0a9b7;
        }

        .input-wrapper input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(23, 105, 232, .09);
        }

        .toggle-password {
            position: absolute;
            right: 13px;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            color: #8996a8;
            cursor: pointer;
        }

        .toggle-password svg {
            width: 21px;
            height: 21px;
        }

        .error {
            margin-top: 7px;
            color: #dc2626;
            font-size: 13px;
        }

        /* Tombol masuk */

        .btn-login {
            width: 100%;
            height: 58px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 28px;
            border: none;
            border-radius: 14px;
            background: linear-gradient(110deg, #2187f5, #124fd9);
            color: #fff;
            font-size: 17px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 9px 20px rgba(23, 105, 232, .20);
            transition: .2s ease;
        }

        
        /* =================================
        LOGIN LOADING STATE
        ================================= */

        .btn-login:disabled {
            opacity: .85;
            cursor: not-allowed;
            transform: none;
            box-shadow: 0 9px 20px rgba(23, 105, 232, .15);
        }

        .login-spinner {
            width: 21px;
            height: 21px;
            display: inline-block;
            flex-shrink: 0;

            border: 3px solid rgba(255, 255, 255, .35);
            border-top-color: #ffffff;
            border-radius: 50%;

            animation: login-spin .7s linear infinite;
        }

        @keyframes login-spin {
            to {
                transform: rotate(360deg);
            }
        }

        .btn-login .loading-text {
            letter-spacing: .2px;
        }


        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 24px rgba(23, 105, 232, .27);
        }

        .btn-login:active {
            transform: scale(.99);
        }

        .btn-login svg {
            width: 22px;
            height: 22px;
        }

        /* Informasi */

        .info-box {
            display: flex;
            gap: 13px;
            align-items: flex-start;
            margin-top: 27px;
            padding: 17px;
            border-radius: 17px;
            background: #edf5ff;
            color: var(--navy);
        }

        .info-icon {
            flex-shrink: 0;
            width: 25px;
            height: 25px;
            color: var(--primary);
        }

        .info-box strong {
            display: block;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .info-box p {
            font-size: 13px;
            line-height: 1.5;
            color: #49678e;
        }

        /* Footer */

        .footer {
            width: 100%;
            text-align: center;
            margin-top: 28px;
            color: #6683a9;
            font-size: 12px;
            line-height: 1.7;
        }

        .footer strong {
            color: #345982;
        }

        /* Responsive */

        @media (max-width: 480px) {
            .login-page {
                padding: 28px 17px 25px;
            }

            .brand {
                margin: 10px auto 28px;
            }

            .brand-icon {
                width: 78px;
                height: 68px;
                margin-bottom: 12px;
            }

            .brand h1 {
                font-size: 36px;
            }

            .brand p {
                font-size: 15px;
            }

            .login-card {
                padding: 28px 22px;
                border-radius: 25px;
            }

            .login-heading h2 {
                font-size: 25px;
            }

            .login-heading p {
                font-size: 14px;
            }

            .input-wrapper input {
                height: 55px;
                font-size: 15px;
            }

            .btn-login {
                height: 55px;
            }
        }

        @media (max-height: 700px) and (min-width: 481px) {
            .login-page {
                padding-top: 20px;
            }

            .brand {
                margin-top: 0;
                margin-bottom: 20px;
            }

            .brand-icon {
                width: 65px;
                height: 55px;
            }

            .login-card {
                padding: 25px;
            }
        }


        
/* =========================================
   FIXED SCREEN LOGIN - SUJIAN
   Tidak bisa scroll vertikal maupun horizontal
========================================= */

html,
body {
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.student-page {
    overflow: hidden !important;
}

.login-page {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;

    padding: clamp(10px, 2.5vh, 24px) 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: clamp(10px, 2vh, 22px);

    overflow: hidden;
    overscroll-behavior: none;
}

/* Dekorasi tidak menyebabkan overflow */

.shape {
    pointer-events: none;
    max-width: none;
}

/* Header SUJIAN */

.brand {
    flex-shrink: 0;
    width: 100%;
    max-width: 460px;

    margin: 0;
}

.brand-icon {
    width: clamp(46px, 9vh, 78px);
    height: clamp(40px, 8vh, 68px);

    margin: 0 auto clamp(4px, 1vh, 10px);
}

.brand h1 {
    font-size: clamp(27px, 5vh, 40px);
    line-height: 1.05;
}

.brand p {
    font-size: clamp(12px, 2vh, 16px);
    margin-top: 4px;
}

.brand-line {
    width: 55px;
    height: 4px;
    margin-top: clamp(7px, 1.5vh, 14px);
}

/* Login card */

.login-card {
    flex-shrink: 1;
    width: 100%;
    max-width: 460px;
    min-height: 0;

    padding: clamp(15px, 2.8vh, 27px)
             clamp(17px, 5vw, 28px);

    border-radius: 24px;
    overflow: visible;
}

.login-heading {
    margin-bottom: clamp(12px, 2.5vh, 24px);
}

.login-heading h2 {
    font-size: clamp(21px, 3.5vh, 27px);
    margin-bottom: 6px;
}

.login-heading p {
    font-size: clamp(12px, 1.9vh, 15px);
    line-height: 1.4;
}

/* Input */

.form-group {
    margin-bottom: clamp(10px, 1.8vh, 17px);
}

.form-group label {
    font-size: clamp(12px, 1.8vh, 14px);
    margin-bottom: 6px;
}

.input-wrapper input {
    height: clamp(43px, 7.5vh, 56px);
    padding-left: 45px;
    padding-right: 45px;
    font-size: 15px;
    border-radius: 12px;
}

.input-icon {
    left: 13px;
    width: 20px;
    height: 20px;
}

.toggle-password {
    right: 9px;
}

/* Error */

.error {
    margin-top: 4px;
    font-size: 11px;
}

/* Tombol login */

.btn-login {
    height: clamp(44px, 7.5vh, 56px);
    margin-top: clamp(10px, 2vh, 20px);
    font-size: 15px;
    border-radius: 12px;
}

/* Informasi */

.info-box {
    margin-top: clamp(11px, 2vh, 20px);
    padding: clamp(10px, 1.8vh, 16px);
    gap: 10px;
    border-radius: 13px;
}

.info-icon {
    width: 21px;
    height: 21px;
}

.info-box strong {
    font-size: 12px;
    margin-bottom: 3px;
}

.info-box p {
    font-size: 11px;
    line-height: 1.4;
}

/* Footer */

.footer {
    flex-shrink: 0;
    margin-top: 0;
    font-size: 10px;
    line-height: 1.4;
}

/* HP dengan layar pendek */

@media (max-height: 650px) {
    .login-page {
        gap: 7px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .brand-icon {
        width: 42px;
        height: 36px;
        margin-bottom: 3px;
    }

    .brand h1 {
        font-size: 25px;
    }

    .brand p {
        font-size: 11px;
        margin-top: 2px;
    }

    .brand-line {
        margin-top: 5px;
        height: 3px;
    }

    .login-card {
        padding: 12px 17px;
    }

    .login-heading {
        margin-bottom: 9px;
    }

    .login-heading h2 {
        font-size: 20px;
    }

    .login-heading p {
        font-size: 11px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .input-wrapper input {
        height: 40px;
    }

    .btn-login {
        height: 42px;
        margin-top: 8px;
    }

    .info-box {
        margin-top: 8px;
        padding: 8px 10px;
    }

    .info-box p {
        font-size: 10px;
    }

    .footer {
        font-size: 9px;
    }
}

/* HP sangat sempit */

@media (max-width: 360px) {
    .login-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-card {
        padding-left: 15px;
        padding-right: 15px;
    }

    .login-heading h2 {
        font-size: 21px;
    }

    .info-box p {
        font-size: 10px;
    }
}

    
