/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   HTML & BODY
========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #064b4d;

    color: #ffffff;

    overflow-x: hidden;
}


/* =========================================================
   PARTICLES
========================================================= */

.particles {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}


.particle {
    position: absolute;

    width: var(--particle-size);
    height: var(--particle-size);

    border-radius: 50%;

    background: rgba(255,
            255,
            255,
            0.55);

    animation:
        particleMove var(--particle-duration) linear infinite;
}


.particle-gold {
    background: rgba(212,
            175,
            55,
            0.8);
}


@keyframes particleMove {

    0% {
        transform:
            translateY(110vh) translateX(0);

        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform:
            translateY(-10vh) translateX(var(--particle-move));

        opacity: 0;
    }

}


/* =========================================================
   LOGIN CONTAINER
========================================================= */

.login-container {
    position: relative;

    z-index: 2;

    width: 100%;
    min-height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 24px;
}


/* =========================================================
   LOGIN PANEL
========================================================= */

.login-panel {
    position: relative;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    width: 100%;

    max-width: 1000px;

    height: 620px;

    background: #ffffff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0,
            0,
            0,
            0.35);
}


/* =========================================================
   BAGIAN KIRI
========================================================= */

.login-content {
    width: 100%;

    height: 100%;

    display: flex;

    justify-content: center;
    align-items: center;

    background: #ffffff;

    padding:
        35px 45px;
}


.login-box {
    width: 100%;

    max-width: 470px;

    color: #183437;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: block;

    width: 78px;
    height: 78px;

    object-fit: contain;

    margin:
        0 auto 18px;
}


/* =========================================================
   JUDUL
========================================================= */

.login-title {
    text-align: center;

    font-size: 32px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: 1px;

    color: #087f81;

    margin-bottom: 8px;
}


.login-subtitle {
    text-align: center;

    font-size: 19px;

    font-weight: 700;

    letter-spacing: 0.8px;

    color: #087f81;

    margin-bottom: 18px;
}


.title-line {
    width: 100%;

    height: 4px;

    border-radius: 10px;

    background: #087f81;

    margin:
        0 auto 28px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    width: 100%;

    margin-bottom: 18px;
}


.form-label {
    display: block;

    margin-bottom: 7px;

    font-size: 15px;

    font-weight: 700;

    color: #263b3e;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.input-wrapper {
    position: relative;

    width: 100%;
}


/* =========================================================
   INPUT
========================================================= */

.input-wrapper input {
    width: 100%;

    height: 56px;

    padding:
        0 52px;

    border:
        2px solid #dce5e7;

    border-radius: 12px;

    outline: none;

    background: #f8fafb;

    color: #263b3e;

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color 0.2s ease,

        box-shadow 0.2s ease,

        background 0.2s ease;
}


.input-wrapper input::placeholder {
    color: #a7b3b5;
}


.input-wrapper input:focus {
    background: #ffffff;

    border-color: #0a898b;

    box-shadow:
        0 0 0 4px rgba(10,
            137,
            139,
            0.10);
}


/* =========================================================
   INPUT ICON
========================================================= */

.input-icon {
    position: absolute;

    left: 17px;

    top: 50%;

    width: 21px;
    height: 21px;

    transform:
        translateY(-50%);

    color: #91a1a4;

    pointer-events: none;
}


/* =========================================================
   PASSWORD BUTTON
========================================================= */

.password-toggle {
    position: absolute;

    right: 13px;

    top: 50%;

    width: 32px;
    height: 32px;

    display: flex;

    justify-content: center;
    align-items: center;

    padding: 0;

    border: 0;

    background: transparent;

    color: #91a1a4;

    transform:
        translateY(-50%);

    cursor: pointer;
}


.password-toggle:hover {
    color: #087f81;
}


.password-toggle svg {
    width: 21px;
    height: 21px;
}


#eyeClosed {
    display: none;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    position: relative;

    width: 100%;

    height: 57px;

    margin-top: 6px;

    border: none;

    border-radius: 12px;

    background: #09888a;

    color: #ffffff;

    font-family: inherit;

    font-size: 17px;

    font-weight: 800;

    letter-spacing: 0.5px;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(9,
            136,
            138,
            0.20);

    transition:
        transform 0.2s ease,

        background 0.2s ease,

        box-shadow 0.2s ease;
}


.login-button span {
    margin-left: 8px;

    font-size: 20px;
}


.login-button:hover {
    background: #087b7d;

    transform:
        translateY(-2px);

    box-shadow:
        0 14px 30px rgba(9,
            136,
            138,
            0.28);
}


.login-button:active {
    transform:
        translateY(0);
}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {
    text-align: center;

    margin-top: 18px;

    color: #8b999b;

    font-size: 12px;

    line-height: 1.7;
}


.login-footer strong {
    display: block;

    margin-top: 2px;

    color: #849497;

    font-size: 16px;

    font-weight: 400;
}


/* =========================================================
   BAGIAN KANAN — FOTO
========================================================= */

.login-image {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #eeeeee;
}


.login-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

    user-select: none;
}


/* Lapisan tipis agar foto menyatu dengan panel */

.login-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(90deg,
            rgba(0,
                0,
                0,
                0.05),
            transparent 25%);

    pointer-events: none;
}


/* =========================================================
   LAPTOP KECIL
========================================================= */

@media (max-width: 1050px) {

    .login-container {
        padding: 20px;
    }


    .login-panel {
        max-width: 900px;

        height: 570px;
    }


    .login-content {
        padding:
            30px 35px;
    }


    .login-title {
        font-size: 29px;
    }


    .login-subtitle {
        font-size: 17px;
    }


    .logo {
        width: 68px;
        height: 68px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .login-container {
        padding: 15px;
    }


    .login-panel {
        max-width: 700px;

        height: 520px;
    }


    .login-content {
        padding:
            25px;
    }


    .login-box {
        max-width: 330px;
    }


    .login-title {
        font-size: 25px;
    }


    .login-subtitle {
        font-size: 14px;
    }


    .title-line {
        height: 3px;

        margin-bottom: 22px;
    }


    .input-wrapper input {
        height: 50px;
    }


    .login-button {
        height: 51px;

        font-size: 15px;
    }


    .logo {
        width: 60px;
        height: 60px;

        margin-bottom: 12px;
    }


    .login-footer strong {
        font-size: 13px;
    }

}


/* =========================================================
   HP
========================================================= */

@media (max-width: 650px) {

    .login-container {

        min-height: 100vh;

        padding: 12px;

    }


    .login-panel {

        display: block;

        width: 100%;

        max-width: 430px;

        height: auto;

        min-height: 0;

        border-radius: 18px;

    }


    .login-content {

        width: 100%;

        min-height: 100vh;

        height: auto;

        padding:
            35px 22px;

    }


    .login-box {

        width: 100%;

        max-width: 380px;

    }


    /*
       FOTO DI HP DISEMBUNYIKAN
       agar login tetap ringkas
    */

    .login-image {

        display: none;

    }


    .login-title {

        font-size: 27px;

    }


    .login-subtitle {

        font-size: 14px;

    }


    .title-line {

        margin-bottom: 25px;

    }


    .form-group {

        margin-bottom: 17px;

    }


    .input-wrapper input {

        height: 52px;

        font-size: 14px;

    }


    .login-button {

        height: 52px;

    }

}


/* =========================================================
   HP KECIL
========================================================= */

@media (max-width: 400px) {

    .login-container {

        padding: 8px;

    }


    .login-panel {

        border-radius: 15px;

    }


    .login-content {

        padding:
            28px 17px;

    }


    .logo {

        width: 58px;

        height: 58px;

    }


    .login-title {

        font-size: 24px;

        letter-spacing: 0.5px;

    }


    .login-subtitle {

        font-size: 12px;

        letter-spacing: 0.3px;

    }


    .title-line {

        height: 3px;

        margin-bottom: 21px;

    }


    .form-label {

        font-size: 13px;

    }


    .input-wrapper input {

        height: 48px;

        padding:
            0 44px;

    }


    .input-icon {

        left: 13px;

        width: 19px;

        height: 19px;

    }


    .password-toggle {

        right: 9px;

    }


    .login-button {

        height: 49px;

        font-size: 14px;

    }


    .login-footer {

        font-size: 10px;

    }


    .login-footer strong {

        font-size: 12px;

    }

}


/* =========================================================
   HP LANDSCAPE
========================================================= */

@media (max-width: 800px) and (max-height: 600px) {

    .login-content {

        min-height: 100vh;

        padding-top: 20px;

        padding-bottom: 20px;

    }


    .logo {

        width: 45px;

        height: 45px;

        margin-bottom: 8px;

    }


    .login-title {

        font-size: 21px;

    }


    .login-subtitle {

        font-size: 11px;

        margin-bottom: 8px;

    }


    .title-line {

        margin-bottom: 15px;

    }


    .form-group {

        margin-bottom: 10px;

    }


    .input-wrapper input {

        height: 43px;

    }


    .login-button {

        height: 44px;

    }


    .login-footer {

        margin-top: 10px;

    }

}

/* Hilangkan icon password bawaan browser */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}