/* DASAR */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family: 'Inter', sans-serif;

    background: #EAF3FF;

    color: #263445;
}


/* HALAMAN LOGIN */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;
}


/* CARD LOGIN */

.login-card {
    width: 100%;
    max-width: 1100px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    overflow: hidden;

    background: #FFFFFF;

    border: 1px solid #E3ECF7;
    border-radius: 24px;

    box-shadow:
        0 20px 55px rgba(91, 147, 217, 0.16);
}


/* PANEL KIRI */

.login-brand-panel {
    position: relative;

    min-height: 620px;

    display: flex;
    align-items: center;

    padding: 65px 70px;

    overflow: hidden;

    color: #FFFFFF;
}


/* Dekorasi cahaya */

.login-brand-panel::before {
    content: '';

    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    left: -170px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.13);

    pointer-events: none;
}


.login-brand-panel::after {
    content: '';

    position: absolute;

    width: 330px;
    height: 330px;

    right: -180px;
    bottom: -190px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);

    pointer-events: none;
}


/* WARNA PANEL KIRI */

/* Admin menggunakan Secondary UI Kit */

.login-admin .login-brand-panel {
    background: #5B93D9;
}


/* Pegawai menggunakan Primary UI Kit */

.login-pegawai .login-brand-panel {
    background: #7FB3F0;
}


/* KONTEN BRAND */

.brand-content {
    position: relative;

    z-index: 1;

    max-width: 440px;
}


/* Pemerintah */

.government-name {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin-bottom: 28px;
}


.government-name span {
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;

    opacity: 0.95;
}


/* LOGO KIRI */

.government-logo {
    width: 76px;
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;
    padding: 5px;

    background: #FFFFFF;

    border-radius: 8px;

    box-shadow:
        0 6px 18px rgba(38, 52, 69, 0.10);

    overflow: hidden;
}


.government-logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    border-radius: 4px;
}


/* JUDUL BRAND */

.brand-content h1 {
    margin-bottom: 20px;

    color: #FFFFFF;

    font-size: 38px;
    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -1px;
}


/* TAGLINE */

.brand-tagline {
    color: rgba(255, 255, 255, 0.92);

    font-size: 15px;
    font-weight: 500;

    line-height: 1.6;
}


/* GARIS BRAND */

.brand-divider {
    width: 42px;
    height: 2px;

    margin: 25px 0 14px;

    background: #FFFFFF;

    opacity: 0.9;
}


/* NILAI BRAND */

.brand-values {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    color: rgba(255, 255, 255, 0.85);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1.8px;
}


/* PANEL KANAN */

.login-form-panel {
    min-height: 620px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px 72px;

    background: #FFFFFF;
}


/* HEADER LOGIN */

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    margin-bottom: 30px;
}


/* LOGO KANAN */

.login-logo {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    margin-bottom: 10px;

    background: transparent;

    border-radius: 0;

    box-shadow: none;
}


.login-logo img {
    width: 52px;
    height: 52px;

    display: block;

    object-fit: contain;
}


/* NAMA DPMD */

.login-header h2 {
    margin-bottom: 3px;

    color: #263445;

    font-size: 23px;
    font-weight: 800;
}


.login-header > span {
    color: #64748B;

    font-size: 12px;
    font-weight: 500;
}


.login-header p {
    margin-top: 5px;

    color: #98A4B3;

    font-size: 10px;
}


/* FORM */

.login-form {
    width: 100%;
}


.form-group {
    display: flex;
    flex-direction: column;

    gap: 7px;

    margin-bottom: 17px;
}


.form-group label {
    color: #263445;

    font-size: 11px;
    font-weight: 600;
}


/* INPUT */

.input-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}


.input-wrapper > i {
    position: absolute;

    left: 15px;

    z-index: 1;

    color: #8AA0B8;

    font-size: 13px;

    pointer-events: none;
}


.input-wrapper input {
    width: 100%;
    height: 43px;

    padding: 0 42px 0 38px;

    border: 1px solid #DCE6F1;

    border-radius: 9px;

    outline: none;

    background: #FFFFFF;

    color: #263445;

    font-family: inherit;

    font-size: 11px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-wrapper input::placeholder {
    color: #A3B0BF;
}


/* FOCUS INPUT - ADMIN */

.login-admin .input-wrapper input:focus {
    border-color: #5B93D9;

    box-shadow:
        0 0 0 3px rgba(91, 147, 217, 0.16);
}


/* FOCUS INPUT - PEGAWAI */

.login-pegawai .input-wrapper input:focus {
    border-color: #7FB3F0;

    box-shadow:
        0 0 0 3px rgba(127, 179, 240, 0.16);
}


/* PASSWORD TOGGLE */

.password-toggle {
    position: absolute;

    right: 8px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #8A96A5;

    cursor: pointer;

    font-size: 13px;
}


.login-admin .password-toggle:hover {
    color: #5B93D9;
}


.login-pegawai .password-toggle:hover {
    color: #7FB3F0;
}


/* OPSI LOGIN */

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 2px;
    margin-bottom: 22px;
}


/* Ingat saya */

.remember-me {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #7A8797;

    font-size: 9px;

    cursor: pointer;
}


.remember-me input {
    width: 13px;
    height: 13px;

    margin: 0;

    cursor: pointer;
}


.login-admin .remember-me input {
    accent-color: #5B93D9;
}


.login-pegawai .remember-me input {
    accent-color: #7FB3F0;
}


/* LUPA PASSWORD */

.forgot-password {
    font-size: 9px;
    font-weight: 600;

    text-decoration: none;
}


.login-admin .forgot-password {
    color: #5B93D9;
}


.login-admin .forgot-password:hover {
    color: #4C84CA;

    text-decoration: underline;
}


.login-pegawai .forgot-password {
    color: #7FB3F0;
}


.login-pegawai .forgot-password:hover {
    color: #6AA5E8;

    text-decoration: underline;
}


/* ERROR */

.form-error {
    color: #DC3545;

    font-size: 9px;

    line-height: 1.4;
}


.login-error {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 15px;

    padding: 9px 11px;

    border-radius: 8px;

    background: #FFF1F2;

    color: #DC3545;

    font-size: 9px;
}


/* TOMBOL MASUK */

/* Admin */

.login-admin .login-button {
    width: 100%;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;
    border-radius: 9px;

    background: #5B93D9;
    color: #FFFFFF;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(91, 147, 217, 0.25);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.login-admin .login-button:hover {
    background: #4C84CA;

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(91, 147, 217, 0.25);
}


/* Pegawai */

.login-pegawai .login-button {
    width: 100%;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;
    border-radius: 9px;

    background: #7FB3F0;
    color: #FFFFFF;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(127, 179, 240, 0.25);

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.login-pegawai .login-button:hover {
    background: #6AA5E8;

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(127, 179, 240, 0.25);
}


.login-button:active {
    transform: translateY(0);
}


.login-button i {
    font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .login-page {
        padding: 20px;
    }


    .login-card {
        max-width: 720px;

        grid-template-columns: 1fr;
    }


    .login-brand-panel {
        min-height: 360px;

        padding: 45px 50px;
    }


    .brand-content h1 {
        font-size: 32px;
    }


    .login-form-panel {
        min-height: auto;

        padding: 45px 55px;
    }

}


@media (max-width: 550px) {

    .login-page {
        padding: 12px;
    }


    .login-card {
        border-radius: 18px;
    }


    .login-brand-panel {
        min-height: 300px;

        padding: 35px 30px;
    }


    .government-name {
        margin-bottom: 20px;
    }


    .government-logo {
        width: 62px;
        height: 62px;

        margin-bottom: 18px;
    }


    .brand-content h1 {
        font-size: 27px;
    }


    .brand-tagline {
        font-size: 12px;
    }


    .brand-values {
        font-size: 7px;
    }


    .login-form-panel {
        padding: 38px 28px;
    }


    .login-header h2 {
        font-size: 21px;
    }

}