* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;

    background:
        linear-gradient(
            135deg,
            #f4f8fa 0%,
            #edf4f7 100%
        );

    overflow: hidden;
}


/* ==========================================
   ANIMATED NETWORK BACKGROUND
========================================== */

#networkCanvas {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    pointer-events: none;
}


/* ==========================================
   LOGIN PAGE
========================================== */

.login-page {
    position: relative;
    z-index: 1;

    width: 100%;
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    /* PENTING:
       transparan supaya canvas terlihat */
    background: transparent;
}


/* ==========================================
   LOGIN CARD
========================================== */

.login-card {
    position: relative;
    z-index: 2;

    width: 1000px;
    max-width: 100%;

    height: 720px;
    max-height: calc(100vh - 60px);

    display: flex;

    background: #ffffff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.13);

    border: 1px solid rgba(0, 0, 0, 0.03);
}


/* ==========================================
   LEFT - IMAGE
========================================== */

.login-image {
    width: 60%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;

    position: relative;
}


/*
|------------------------------------------------------------------
| PENTING
|------------------------------------------------------------------
| Jangan gunakan object-fit: cover.
|
| contain membuat seluruh gambar tetap terlihat
| dan tidak terpotong.
*/

.login-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center center;

    transform: scale(1.08);
}


/* ==========================================
   RIGHT - LOGIN FORM
========================================== */

.login-form {
    width: 40%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px 55px;

    background: #ffffff;

    border-left: 1px solid #eef1f3;
}


.login-content {
    width: 100%;
    max-width: 390px;
}


/* ==========================================
   LOGO
========================================== */

.logo-section {
    display: flex;
    justify-content: center;

    margin-bottom: 20px;
}

.logo-img {
    width: 90px;
    height: auto;

    object-fit: contain;
}


/* ==========================================
   TITLE
========================================== */

.title-section {
    text-align: center;

    margin-bottom: 30px;
}

.title-section h1 {
    font-size: 26px;

    line-height: 1.4;

    font-weight: 600;

    color: #202b35;

    margin-bottom: 5px;
}

.title-section h1 span {
    color: #1685bd;
}

.title-section p {
    font-size: 12px;

    color: #8a96a3;
}


/* ==========================================
   FORM
========================================== */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 500;

    color: #344054;
}

.form-group label i {
    color: #1685bd;

    margin-right: 4px;
}


/* ==========================================
   INPUT
========================================== */

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    height: 40px;

    padding: 0 48px 0 10px;

    border: 1px solid #d7dde2;

    border-radius: 10px;

    outline: none;

    background: #ffffff;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    color: #344054;

    transition: all .2s ease;
}

.input-wrapper input::placeholder {
    color: #a5adb5;
}

.input-wrapper input:focus {
    border-color: #1685bd;

    box-shadow:
        0 0 0 4px rgba(22, 133, 189, .08);
}


/* ==========================================
   INPUT ICON
========================================== */

.input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #98a2b3;

    font-size: 18px;

    pointer-events: none;
}


/* ==========================================
   PASSWORD TOGGLE
========================================== */

.password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    transform: translateY(-50%);

    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #98a2b3;

    cursor: pointer;

    font-size: 18px;

    border-radius: 7px;

    transition: .2s;
}

.password-toggle:hover {
    color: #1685bd;

    background: #f1f8fb;
}


/* ==========================================
   ERROR
========================================== */

.invalid-feedback {
    margin-top: 6px;

    font-size: 11px;

    color: #d92d20;
}


/* ==========================================
   OPTIONS
========================================== */

.form-options {
    display: flex;

    justify-content: space-between;
    align-items: center;

    margin: 4px 0 22px;
}

.remember-me {
    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 11px;

    color: #667085;

    cursor: pointer;
}

.remember-me input {
    width: 14px;
    height: 14px;

    accent-color: #1685bd;

    cursor: pointer;
}


/* ==========================================
   LOGIN BUTTON
========================================== */

.btn-signin {
    width: 100%;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    border: none;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #1685bd 0%,
            #0d6f9f 100%
        );

    color: #ffffff;

    font-family: 'Poppins', sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all .25s ease;

    box-shadow:
        0 8px 20px rgba(22, 133, 189, .22);
}

.btn-signin i {
    font-size: 17px;
}

.btn-signin:hover {
    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(22, 133, 189, .30);
}

.btn-signin:active {
    transform: translateY(0);
}


/* ==========================================
   FOOTER
========================================== */

.login-footer {
    text-align: center;

    margin-top: 25px;

    padding-top: 18px;

    border-top: 1px solid #eaecf0;
}

.login-footer p {
    margin-bottom: 3px;

    font-size: 10px;

    color: #667085;
}

.login-footer span {
    font-size: 9px;

    color: #98a2b3;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1000px) {

    .login-card {
        width: 950px;

        height: 650px;
    }

    .login-image {
        width: 55%;
    }

    .login-form {
        width: 45%;

        padding: 40px;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .login-page {
        padding: 0;

        min-height: 100vh;
    }

    .login-card {
        width: 100%;
        max-width: 100%;

        height: 100vh;
        max-height: none;

        border-radius: 0;

        display: block;

        box-shadow: none;
    }


    /* gambar tidak ditampilkan di mobile */

    .login-image {
        display: none;
    }


    .login-form {
        width: 100%;
        height: 100%;

        padding: 35px 25px;

        border-left: none;
    }

    .login-content {
        max-width: 400px;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 400px) {

    .login-form {
        padding: 25px 20px;
    }

    .logo-img {
        width: 80px;
    }

    .title-section h1 {
        font-size: 23px;
    }

}