/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    overflow: hidden;
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-page {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/*
|--------------------------------------------------------------------------
| BACKGROUND BIRU BESAR
|--------------------------------------------------------------------------
| Ini yang keluar dari batas card seperti referensi.
| BUKAN panel login yang diperbesar.
*/

.login-page::before {
    content: '';

    position: absolute;
    z-index: 0;

    top: -15%;
    bottom: -15%;
    left: 50%;

    width: 70%;

    background: #285ba5;

    transform: skewX(-13deg);
    transform-origin: center;
}


/* =========================================================
   CARD UTAMA
========================================================= */

.login-container {
    position: relative;
    z-index: 2;

    width: 1000px;
    max-width: calc(100% - 80px);
    height: 520px;

    display: grid;
    grid-template-columns: 50% 50%;

    /*
       Card transparan agar background biru
       di belakang terlihat pada sisi kanan.
    */
    background: transparent;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.22);

    overflow: hidden;
}


/* =========================================================
   PANEL KIRI
========================================================= */

.login-brand-panel {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
}


/*
|--------------------------------------------------------------------------
| POTONGAN PUTIH DIAGONAL
|--------------------------------------------------------------------------
| Membuat sisi putih masuk sedikit ke kanan.
| Ini hanya berada DI DALAM card.
*/

.login-brand-panel::after {
    content: '';

    position: absolute;

    top: -80px;
    right: -65px;

    width: 135px;
    height: 700px;

    background: #ffffff;

    transform: rotate(13deg);
}


/* =========================================================
   BRAND
========================================================= */

.brand-content {
    position: relative;
    z-index: 3;

    width: 100%;

    padding-right: 35px;

    text-align: center;
}

.brand-logo {
    width: 115px;
    height: 115px;

    margin-bottom: 22px;

    object-fit: contain;

    background: transparent;
}

.brand-logo-default {
    width: 110px;
    height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 22px;

    color: #285ba5;

    font-size: 60px;
}

.brand-content h1 {
    margin: 0 0 7px;

    color: #285ba5;

    font-size: 25px;
    font-weight: 700;
}

.brand-content p {
    margin: 0;

    color: #64748b;

    font-size: 11px;
}


/* =========================================================
   PANEL KANAN
========================================================= */

.login-form-panel {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    /*
       TRANSPARAN.
       Warna biru berasal dari background besar
       di belakang card.
    */
    background: transparent;
}


/* =========================================================
   FORM
========================================================= */

.login-form-wrapper {
    position: relative;
    z-index: 5;

    width: 290px;

    /*
       Form digeser ke kanan agar punya jarak
       aman dari garis diagonal.
    */
    margin-left: 75px;
}

.form-group {
    margin-bottom: 13px;
}


/* =========================================================
   INPUT
========================================================= */

.input-wrapper {
    position: relative;

    width: 100%;
}

.input-wrapper input {
    width: 100%;
    height: 38px;

    padding:
        0
        40px
        0
        38px;

    color: #334155;

    font-family: 'Poppins', sans-serif;
    font-size: 11px;

    background: #ffffff;

    border: 1px solid #e2e8f0;
    border-radius: 2px;

    outline: none;

    transition: 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus {
    border-color: #8ba7dd;

    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.15);
}


/* =========================================================
   INPUT ICON
========================================================= */

.input-icon {
    position: absolute;
    z-index: 2;

    top: 50%;
    left: 13px;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 11px;

    pointer-events: none;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;
    z-index: 3;

    top: 50%;
    right: 11px;

    transform: translateY(-50%);

    padding: 4px;

    color: #94a3b8;

    background: transparent;

    border: none;

    font-size: 11px;

    cursor: pointer;
}


/* =========================================================
   REMEMBER ME
========================================================= */

.remember-me {
    display: flex;
    align-items: center;

    gap: 7px;

    margin:
        5px
        0
        15px;

    color: rgba(255, 255, 255, 0.85);

    font-size: 9px;

    cursor: pointer;
}

.remember-me input {
    width: 11px;
    height: 11px;

    margin: 0;
}


/* =========================================================
   BUTTON LOGIN
========================================================= */

.login-button {
    width: 100%;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #ffffff;

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;

    background: #527dff;

    border: none;
    border-radius: 2px;

    cursor: pointer;

    transition: 0.2s ease;
}

.login-button:hover {
    background: #648aff;
}


/* =========================================================
   ERROR
========================================================= */

.input-error {
    display: block;

    margin-top: 5px;

    color: #ffd4d4;

    font-size: 9px;
}

.login-status {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 800px) {

    body {
        overflow: auto;
    }

    .login-page {
        padding: 25px;
    }

    .login-page::before {
        display: none;
    }

    .login-container {
        max-width: 450px;
        height: auto;

        display: block;

        background: #ffffff;
    }

    .login-brand-panel {
        min-height: 260px;
    }

    .login-brand-panel::after {
        display: none;
    }

    .brand-content {
        padding: 30px;
    }

    .login-form-panel {
        min-height: 300px;

        padding: 40px 30px;

        background: #285ba5;
    }

    .login-form-wrapper {
        width: 100%;
        max-width: 290px;

        margin-left: 0;
    }
}