/* =====================================================
   RESET
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background:
        linear-gradient(135deg,
            #f5f8f6 0%,
            #eef7f2 50%,
            #ffffff 100%);

    color: #18352b;
    min-height: 100vh;
}


/* =====================================================
   HALAMAN LOGIN
===================================================== */

.login-page {

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

    display: flex;
    flex-direction: column;

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

    padding: 35px 20px;

    position: relative;
}


/* =====================================================
   IDENTITAS PORTAL
===================================================== */

.portal-header {

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

    gap: 14px;

    margin-bottom: 16px;

    text-align: left;
}


/* LOGO */

.portal-logo {

    width: 58px;
    height: 58px;

    object-fit: contain;
}


/* TEKS PORTAL */

.portal-text h1 {

    font-family: "Playfair Display", serif;

    font-size: 24px;

    color: #123c2d;

    line-height: 1.1;

    margin-bottom: 3px;
}


.portal-text span {

    color: #0b6b43;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: .5px;
}


/* =====================================================
   GARIS
===================================================== */

.portal-line {

    width: 55px;
    height: 3px;

    background: #ffd54f;

    border-radius: 10px;

    margin-bottom: 22px;
}


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

.login-box {

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

    background: #ffffff;

    padding: 30px 32px 25px;

    border-radius: 18px;

    border: 1px solid #e5eee9;

    box-shadow:
        0 15px 45px rgba(18, 60, 45, .10);

    position: relative;

    overflow: hidden;
}


/* GARIS ATAS CARD */

.login-box::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(90deg,
            #0b6b43,
            #ffd54f,
            #0b6b43);
}


/* =====================================================
   HEADER LOGIN
===================================================== */

.login-header {

    text-align: center;

    margin-bottom: 25px;
}


.login-label {

    display: inline-block;

    color: #0b6b43;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.8px;

    margin-bottom: 7px;
}


.login-header h2 {

    font-family: "Playfair Display", serif;

    color: #173d2e;

    font-size: 29px;

    line-height: 1.2;

    margin-bottom: 7px;
}


.login-header p {

    color: #718078;

    font-size: 12px;

    line-height: 1.6;

    max-width: 290px;

    margin: auto;
}


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

.login-error {

    background: #fff1f1;

    border: 1px solid #f1cccc;

    color: #b43b3b;

    padding: 10px 12px;

    border-radius: 8px;

    font-size: 11px;

    margin-bottom: 17px;

    text-align: center;
}


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

.login-form {

    display: flex;

    flex-direction: column;

    gap: 17px;
}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 6px;
}


.form-group label {

    color: #294a3d;

    font-size: 11px;

    font-weight: 700;
}


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

.form-group input {

    width: 100%;

    height: 43px;

    border: 1px solid #dce8e2;

    border-radius: 9px;

    padding: 0 13px;

    background: #fafcfb;

    color: #18352b;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    outline: none;

    transition: .3s ease;
}


.form-group input::placeholder {

    color: #9aa9a2;
}


.form-group input:focus {

    border-color: #0b6b43;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(11, 107, 67, .08);
}


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

.password-wrapper {

    position: relative;
}


.password-wrapper input {

    padding-right: 75px;
}


.toggle-password {

    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #0b6b43;

    font-family: "DM Sans", sans-serif;

    font-size: 10px;

    font-weight: 700;

    cursor: pointer;
}


.toggle-password:hover {

    color: #075334;
}


/* =====================================================
   TOMBOL LOGIN
===================================================== */

.login-button {

    width: 100%;

    height: 44px;

    margin-top: 3px;

    border: none;

    border-radius: 9px;

    background: #0b6b43;

    color: #ffffff;

    font-family: "DM Sans", sans-serif;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;

    transition: .3s ease;

    box-shadow:
        0 7px 18px rgba(11, 107, 67, .18);
}


.login-button:hover {

    background: #075334;

    transform: translateY(-2px);

    box-shadow:
        0 10px 22px rgba(11, 107, 67, .23);
}


/* =====================================================
   KEMBALI
===================================================== */

.back-home {

    display: block;

    text-align: center;

    margin-top: 19px;

    color: #0b6b43;

    font-size: 11px;

    font-weight: 700;

    transition: .3s ease;
}


.back-home:hover {

    color: #075334;

    transform: translateX(-2px);
}


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

.login-footer {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    border-top: 1px solid #edf1ee;

    margin-top: 22px;

    padding-top: 15px;

    color: #8a9992;

    font-size: 9px;

    text-align: center;
}


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

@media (max-width: 600px) {

    .login-page {

        padding: 25px 18px;
    }

    .portal-logo {

        width: 52px;
        height: 52px;
    }

    .portal-text h1 {

        font-size: 21px;
    }

    .login-box {

        max-width: 390px;

        padding: 27px 25px 23px;
    }

}


/* =====================================================
   RESPONSIVE HP
===================================================== */

@media (max-width: 420px) {

    .portal-header {

        gap: 10px;
    }

    .portal-logo {

        width: 47px;
        height: 47px;
    }

    .portal-text h1 {

        font-size: 19px;
    }

    .portal-text span {

        font-size: 10px;
    }

    .portal-line {

        margin-bottom: 18px;
    }

    .login-box {

        padding: 25px 20px 21px;

        border-radius: 15px;
    }

    .login-header h2 {

        font-size: 26px;
    }

    .login-header p {

        font-size: 11px;
    }

}