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

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


:root {

    --green: #70c84b;
    --green-dark: #62b941;
    --green-light: #91ef38;

    --text: #111111;
    --gray: #777777;
    --border: #e8e8e8;

    --white: #ffffff;

}


body {

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

    background: #ffffff;

    color: var(--text);

    min-height: 100vh;

}


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

.login-page {

    width: 100%;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 18px 20px 35px;

}


/* =========================================
   BRAND
========================================= */

.brand {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #66be24;

    font-size: 26px;

    font-weight: 800;

    margin-bottom: 8px;

}


.brand-icon {

    width: 38px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;

}


/* =========================================
   ILLUSTRATION
========================================= */

.illustration {

    width: 330px;

    height: 160px;

    position: relative;

    margin-bottom: 2px;

}


/* Background cloud */

.cloud {

    position: absolute;

    background: #eef8e7;

    border-radius: 50%;

}


.cloud-1 {

    width: 145px;

    height: 120px;

    left: 65px;

    top: 12px;

}


.cloud-2 {

    width: 125px;

    height: 100px;

    right: 45px;

    top: 30px;

}


/* =========================================
   STORE
========================================= */

.store {

    position: absolute;

    left: 65px;

    top: 55px;

    width: 190px;

    height: 100px;

    z-index: 3;

}


/* Roof */

.store-roof {

    height: 30px;

    width: 100%;

    display: flex;

    overflow: hidden;

    border-radius: 7px 7px 0 0;

    box-shadow: 0 3px 5px rgba(0,0,0,.12);

}


.store-roof span {

    flex: 1;

    background: white;

    border-bottom: 12px solid #7fd832;

    position: relative;

}


.store-roof span:nth-child(even) {

    background: #7fd832;

    border-bottom: 12px solid white;

}


/* Store body */

.store-body {

    width: 175px;

    height: 85px;

    margin-left: 8px;

    background: #fff;

    border: 1px solid #eeeeee;

    position: relative;

    box-shadow: 0 4px 10px rgba(0,0,0,.08);

}


/* Window */

.store-window {

    position: absolute;

    width: 45px;

    height: 45px;

    top: 18px;

    background: #78c92d;

    border: 4px solid #62ae27;

    border-radius: 3px;

}


.window-left {

    left: 17px;

}


.window-right {

    right: 17px;

}


/* Door */

.store-door {

    position: absolute;

    width: 39px;

    height: 66px;

    bottom: 0;

    left: 68px;

    background: #67bd31;

    border: 4px solid #55a727;

    border-bottom: 0;

}


/* Door handle */

.store-door::after {

    content: "";

    position: absolute;

    width: 5px;

    height: 5px;

    background: #ffffff;

    border-radius: 50%;

    right: 5px;

    top: 35px;

}


/* =========================================
   PLANT
========================================= */

.plant {

    position: absolute;

    right: 32px;

    bottom: 5px;

    width: 50px;

    height: 80px;

    z-index: 5;

}


.pot {

    position: absolute;

    bottom: 0;

    left: 10px;

    width: 32px;

    height: 32px;

    background: #eeeeee;

    border-radius: 3px 3px 10px 10px;

    border-top: 5px solid #cccccc;

}


.leaves span {

    position: absolute;

    width: 22px;

    height: 30px;

    background: #69bd32;

    border-radius: 100% 0 100% 0;

}


.leaves span:nth-child(1) {

    left: 7px;

    top: 28px;

    transform: rotate(-35deg);

}


.leaves span:nth-child(2) {

    left: 22px;

    top: 5px;

    transform: rotate(15deg);

}


.leaves span:nth-child(3) {

    right: 0;

    top: 25px;

    transform: rotate(45deg);

}


.leaves span:nth-child(4) {

    left: 22px;

    top: 28px;

    transform: rotate(90deg);

}


/* =========================================
   LOCK
========================================= */

.lock-box {

    position: absolute;

    left: 52px;

    bottom: 2px;

    width: 80px;

    height: 55px;

    background: #6dc934;

    border-radius: 6px;

    z-index: 10;

    box-shadow: 0 5px 10px rgba(0,0,0,.15);

}


/* Lock shackle */

.lock {

    position: absolute;

    width: 31px;

    height: 30px;

    left: 18px;

    top: -24px;

    border: 7px solid #777777;

    border-bottom: 0;

    border-radius: 18px 18px 0 0;

}


/* Keyhole */

.lock-box::before {

    content: "";

    position: absolute;

    width: 9px;

    height: 9px;

    background: #5c5c5c;

    border-radius: 50%;

    left: 31px;

    top: 19px;

}


.lock-box::after {

    content: "";

    position: absolute;

    width: 5px;

    height: 12px;

    background: #5c5c5c;

    left: 33px;

    top: 26px;

}


/* Shield */

.shield {

    position: absolute;

    right: -22px;

    bottom: -7px;

    width: 46px;

    height: 52px;

    background: white;

    border: 4px solid #ffffff;

    clip-path: polygon(
        50% 0,
        95% 15%,
        88% 68%,
        50% 100%,
        12% 68%,
        5% 15%
    );

    display: flex;

    align-items: center;

    justify-content: center;

    color: #6bc83a;

    font-size: 24px;

    font-weight: 800;

    filter: drop-shadow(
        0 2px 3px rgba(0,0,0,.15)
    );

}


/* =========================================
   HEADING
========================================= */

.login-header {

    text-align: center;

    margin-top: 2px;

}


.login-header h1 {

    font-size: 27px;

    line-height: 1.3;

    font-weight: 800;

}


.login-header h1 span {

    color: var(--green-light);

}


.login-header p {

    font-size: 12px;

    color: #222222;

    margin-top: 4px;

}


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

.login-card {

    width: 372px;

    max-width: 100%;

    border: 2px solid #eeeeee;

    border-radius: 19px;

    padding: 16px 24px 17px;

    margin-top: 8px;

    background: white;

}


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

.form-group {

    margin-bottom: 5px;

}


.form-group label {

    display: block;

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 4px;

}

.input-wrapper {

    height: 31px;

    border: 1px solid var(--green);

    border-radius: 7px;

    display: flex;

    align-items: center;

    position: relative;

    transition: .2s ease;

}


.input-wrapper:focus-within {

    box-shadow: 0 0 0 2px rgba(112,200,75,.15);

}


.input-icon {

    width: 34px;

    text-align: center;

    color: #76c85b;

    font-size: 15px;

}


.input-wrapper input {

    width: 100%;

    height: 100%;

    border: 0;

    outline: none;

    padding: 0 9px 0 0;

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

    font-size: 10px;

    color: #333;

    background: transparent;

}


.input-wrapper input::placeholder {

    color: #999;

}


.password-toggle {

    width: 32px;

    height: 100%;

    border: 0;

    background: transparent;

    cursor: pointer;

    color: #aaa;

    font-size: 12px;

}


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

.error-message {

    display: block;

    min-height: 12px;

    font-size: 8px;

    color: #e53935;

    margin-top: 2px;

}


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

.form-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-top: -2px;

    margin-bottom: 6px;

}


.remember {

    width: 12px;

    height: 12px;

    position: relative;

    cursor: pointer;

}


.remember input {

    opacity: 0;

    width: 0;

    height: 0;

}


.checkmark {

    position: absolute;

    inset: 0;

    background: #ffffff;

    border: 1px solid #cccccc;

    border-radius: 3px;

}


.remember input:checked + .checkmark {

    background: var(--green);

    border-color: var(--green);

}


.remember input:checked + .checkmark::after {

    content: "✓";

    position: absolute;

    color: white;

    font-size: 9px;

    font-weight: 800;

    left: 2px;

    top: -1px;

}


.form-options a {

    color: #69bd47;

    font-size: 9px;

}


.form-options a:hover {

    text-decoration: underline;

}


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

.login-button {

    width: 100%;

    height: 30px;

    border: 0;

    border-radius: 7px;

    background: var(--green);

    color: white;

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

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition: .2s ease;

}


.login-button:hover {

    background: var(--green-dark);

}


.login-button:active {

    transform: scale(.99);

}


/* Loading */

.login-button.loading {

    pointer-events: none;

    opacity: .7;

}


/* =========================================
   DIVIDER
========================================= */

.divider {

    display: flex;

    align-items: center;

    gap: 10px;

    margin: 3px 0 4px;

}


.divider::before,
.divider::after {

    content: "";

    height: 1px;

    background: #eeeeee;

    flex: 1;

}


.divider span {

    font-size: 8px;

    color: #777;

}


/* =========================================
   GOOGLE BUTTON
========================================= */

.google-button {

    width: 100%;

    height: 31px;

    border: 1px solid #dddddd;

    border-radius: 7px;

    background: white;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

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

    font-size: 10px;

    color: #333;

    cursor: pointer;

    transition: .2s ease;

}


.google-button:hover {

    background: #fafafa;

    border-color: #cccccc;

}


.google-icon {

    font-family: Arial, sans-serif;

    font-size: 20px;

    font-weight: 700;

    color: #4285f4;

}


/* =========================================
   REGISTER
========================================= */

.register {

    margin-top: 8px;

    display: flex;

    align-items: center;

    gap: 5px;

    font-size: 9px;

    color: #888;

}


.register a {

    color: #65bd42;

    font-weight: 500;

}


.register a:hover {

    text-decoration: underline;

}


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

@media (max-width: 600px) {

    .login-page {

        padding: 15px 15px 30px;

    }

}


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

@media (max-width: 430px) {

    .brand {

        font-size: 24px;

    }


    .illustration {

        width: 300px;

        height: 150px;

        transform: scale(.9);

        margin-top: -3px;

        margin-bottom: -5px;

    }


    .login-header h1 {

        font-size: 25px;

    }


    .login-header p {

        font-size: 10px;

        padding: 0 10px;

    }


    .login-card {

        width: 100%;

        padding: 15px 23px 16px;

        border-radius: 18px;

    }

}
.google-icon img {
    width: 20px;
    height: 20px;
    display: block;
}


/* =========================================
   HP KECIL
========================================= */

@media (max-width: 350px) {

    .brand {

        font-size: 21px;

    }


    .illustration {

        transform: scale(.78);

        margin-top: -10px;

        margin-bottom: -20px;

    }


    .login-header h1 {

        font-size: 23px;

    }


    .login-card {

        padding-left: 18px;

        padding-right: 18px;

    }

}