/* =========================================
   RESET
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   BODY
   ========================================= */

body {
    font-family: Arial, Helvetica, sans-serif;

    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    color: #ffffff;

    overflow-x: hidden;
    overflow-y: auto;

    /*
     * Background foto dipasang melalui HTML
     * pada tag <body>.
     */
}


/* =========================================
   LOGIN WRAPPER
   ========================================= */

.login-wrapper {
    width: 100%;
    max-width: 430px;

    padding: 20px;

    position: relative;
    z-index: 2;
}


/* =========================================
   LOGIN CARD
   ========================================= */

.login-card {
    width: 100%;

    padding: 36px 32px;

    position: relative;

    border-radius: 20px;

    /*
     * Card transparan gelap.
     * TIDAK menggunakan background.jpg.
     */

    background: rgba(15, 18, 35, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.28);

    /*
     * Efek kaca
     */

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    overflow: hidden;
}


/* =========================================
   LOGO SEKOLAH
   ========================================= */

.logo {
    width: 56px;
    height: 56px;

    margin: 0 auto 14px;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    border-radius: 12px;

    background: #ffffff;

    border: 2px solid rgba(255, 255, 255, 0.65);

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.30);
}


/* =========================================
   FOTO LOGO
   ========================================= */

.logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 10px;
}


/* =========================================
   TITLE
   ========================================= */

.title {
    text-align: center;

    font-size: 25px;

    font-weight: 700;

    margin-bottom: 5px;

    color: #ffffff;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.45);
}


/* =========================================
   SUBTITLE
   ========================================= */

.subtitle {
    text-align: center;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;

    margin-bottom: 30px;

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.45);
}


/* =========================================
   ERROR ALERT
   ========================================= */

.alert {
    padding: 12px 14px;

    margin-bottom: 20px;

    border-radius: 10px;

    background: rgba(180, 30, 30, 0.65);

    border: 1px solid rgba(255, 120, 120, 0.45);

    color: #ffffff;

    font-size: 13px;

    position: relative;
    z-index: 2;
}


/* =========================================
   FORM GROUP
   ========================================= */

.form-group {
    margin-bottom: 20px;

    position: relative;

    z-index: 2;
}


/* =========================================
   LABEL
   ========================================= */

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.45);
}


/* =========================================
   INPUT WRAPPER
   ========================================= */

.input-wrapper {
    width: 100%;

    position: relative;
}


/* =========================================
   INPUT ICON
   ========================================= */

.input-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: rgba(50, 60, 90, 0.65);

    font-size: 15px;

    pointer-events: none;

    z-index: 3;
}


/* =========================================
   FORM CONTROL
   ========================================= */

.form-control {
    width: 100%;

    height: 48px;

    padding: 0 15px 0 43px;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.30);

    background: rgba(245, 248, 255, 0.95);

    color: #171717;

    outline: none;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================
   PLACEHOLDER
   ========================================= */

.form-control::placeholder {
    color: rgba(40, 45, 60, 0.45);
}


/* =========================================
   INPUT FOCUS
   ========================================= */

.form-control:focus {
    border-color: #8172ff;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(113, 94, 255, 0.22);
}


/* =========================================
   LOGIN BUTTON
   ========================================= */

.btn-login {
    width: 100%;

    height: 48px;

    margin-top: 4px;

    border: none;

    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #6366f1,
        #9b51ed
    );

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

    box-shadow:
        0 10px 25px rgba(99, 102, 241, 0.35);

    position: relative;

    z-index: 2;
}


/* =========================================
   BUTTON HOVER
   ========================================= */

.btn-login:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(99, 102, 241, 0.45);
}


/* =========================================
   BUTTON ACTIVE
   ========================================= */

.btn-login:active {
    transform: translateY(0);
}


/* =========================================
   FOOTER
   ========================================= */

.login-footer {
    text-align: center;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.70);

    font-size: 12px;

    position: relative;

    z-index: 2;

    text-shadow:
        0 1px 4px rgba(0, 0, 0, 0.45);
}


/* =========================================
   FOOTER STRONG
   ========================================= */

.login-footer strong {
    color: #ffffff;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 500px) {

    .login-wrapper {
        padding: 15px;
    }

    .login-card {
        padding: 30px 22px;

        border-radius: 18px;
    }

    .title {
        font-size: 23px;
    }

    .subtitle {
        font-size: 13px;

        margin-bottom: 25px;
    }

    .logo {
        width: 54px;
        height: 54px;

        border-radius: 11px;
    }

    .logo img {
        border-radius: 9px;
    }

    .form-control {
        height: 48px;
    }

    .btn-login {
        height: 48px;
    }
}