/* ============================================================
   KEBUN KECIL
   PASSWORD GATE
   ============================================================ */


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

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ============================================================
   BODY
   ============================================================ */

body {
    font-family:
        "Jakarta Sans",
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    overflow: hidden;

    color: #15202b;

    background: #eef7ed;
}


/* ============================================================
   GATE
   ============================================================ */

.kk-gate {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    position: relative;

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

    overflow: hidden;

    background-image:
        url("background-desktop.webp");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/*
 * Lapisan sangat tipis agar teks/card tetap terbaca
 * tetapi background farm tetap terlihat.
 */

.kk-gate::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.00) 55%,
            rgba(255, 255, 255, 0.03) 100%
        );

    pointer-events: none;
}


/* ============================================================
   CONTENT WRAPPER
   ============================================================ */

.kk-gate__content {
    width: min(1180px, 92vw);

    position: relative;
    z-index: 2;

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

    padding: 40px 0;
}


/* ============================================================
   INTRO / LEFT CONTENT
   ============================================================ */

.kk-gate__intro {
    width: 390px;

    position: absolute;
    left: 0;

    color: #15202b;

    text-align: left;
}

.kk-gate__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 9px 16px;

    margin-bottom: 24px;

    border: 1px solid rgba(46, 125, 50, 0.14);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.42);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #2e7d32;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}

.kk-gate__eyebrow span {
    font-size: 16px;
}

.kk-gate__eyebrow i {
    font-style: normal;
    opacity: 0.6;
}


.kk-gate__intro h1 {
    margin: 0 0 22px;

    font-size: clamp(42px, 4vw, 64px);

    line-height: 0.98;

    letter-spacing: -2.5px;

    font-weight: 700;
}

.kk-gate__intro h1 strong {
    display: block;

    color: #2e8b24;

    font-weight: 700;
}


.kk-gate__intro p {
    max-width: 365px;

    margin: 0;

    font-size: 16px;

    line-height: 1.75;

    color: #354453;
}


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

.kk-gate__card {
    width: 420px;

    padding: 42px 42px 34px;

    border: 1px solid rgba(255, 255, 255, 0.68);

    border-radius: 28px;

    /*
     * Dibuat lebih transparan daripada desain referensi.
     * Background farm akan tetap terlihat jelas.
     */
    background: rgba(255, 255, 255, 0.10);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);

    box-shadow:
        0 24px 70px rgba(20, 55, 25, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);

    text-align: center;
}


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

.kk-gate__logo-mark {
    width: 58px;
    height: 58px;

    margin: 0 auto 10px;

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

    color: #318b28;
}

.kk-gate__logo-mark svg {
    width: 58px;
    height: 58px;
}


.kk-gate__brand {
    font-size: 34px;

    line-height: 1;

    letter-spacing: -1.5px;

    font-weight: 700;

    color: #111b24;
}

.kk-gate__brand span {
    color: #111b24;
}

.kk-gate__brand {
    color: #2e8b24;
}

.kk-gate__tagline {
    margin-top: 7px;

    font-size: 16px;

    color: #4d5b68;

    font-weight: 500;
}


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

.kk-gate__divider {
    width: 54px;
    height: 3px;

    margin: 26px auto 25px;

    border-radius: 999px;

    background: #3b942c;
}


/* ============================================================
   WELCOME
   ============================================================ */

.kk-gate__welcome h2 {
    margin: 0 0 8px;

    font-size: 25px;

    line-height: 1.2;

    color: #15202b;
}

.kk-gate__welcome p {
    max-width: 300px;

    margin: 0 auto;

    font-size: 14px;

    line-height: 1.6;

    color: #40505e;
}


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

.kk-gate__form {
    margin-top: 26px;

    text-align: left;
}


.kk-gate__label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 600;

    color: #263540;
}


.kk-gate__input-wrap {
    position: relative;
}


.kk-gate__input-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    width: 21px;
    height: 21px;

    transform: translateY(-50%);

    color: #5f6c76;

    pointer-events: none;
}

.kk-gate__input-icon svg {
    width: 100%;
    height: 100%;
}


.kk-gate__input-wrap input {
    width: 100%;
    height: 56px;

    padding:
        0 18px 0 50px;

    border: 1px solid rgba(100, 115, 125, 0.22);

    border-radius: 14px;

    outline: none;

    background: rgba(255, 255, 255, 0.64);

    color: #17222b;

    font-family: inherit;

    font-size: 15px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.kk-gate__input-wrap input::placeholder {
    color: #7b858c;
}

.kk-gate__input-wrap input:focus {
    border-color: rgba(46, 125, 50, 0.65);

    background: rgba(255, 255, 255, 0.82);

    box-shadow:
        0 0 0 4px rgba(46, 125, 50, 0.10);
}


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

.kk-gate__error {
    margin-top: 10px;
    padding: 9px 12px;

    border-radius: 10px;

    background: rgba(190, 45, 45, 0.10);

    color: #a52828;

    font-size: 13px;

    text-align: center;
}


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

.kk-gate__button {
    width: 100%;
    height: 56px;

    margin-top: 16px;

    border: 0;
    border-radius: 14px;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            #398f28,
            #2d7d23
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;

    box-shadow:
        0 10px 24px rgba(46, 125, 50, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.kk-gate__button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(46, 125, 50, 0.28);

    filter: brightness(1.04);
}

.kk-gate__button:active {
    transform: translateY(0);
}


/* ============================================================
   PRIVATE ACCESS
   ============================================================ */

.kk-gate__private {
    margin-top: 28px;

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

    gap: 12px;
}

.kk-gate__private span {
    width: 34px;
    height: 1px;

    background: rgba(60, 75, 85, 0.35);
}

.kk-gate__private small {
    font-size: 12px;

    color: #52616c;

    letter-spacing: 0.3px;
}


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

@media (max-width: 1050px) {

    .kk-gate__content {
        width: 94vw;
    }

    .kk-gate__intro {
        width: 330px;
    }

    .kk-gate__intro h1 {
        font-size: 46px;
    }

    .kk-gate__card {
        width: 390px;
    }
}


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

@media (max-width: 768px) {

    .kk-gate {
        background-image:
            url("background-mobile.webp");

        background-position: center center;
    }


    .kk-gate::before {
        background:
            rgba(255, 255, 255, 0.04);
    }


    .kk-gate__content {
        width: 100%;
        min-height: 100dvh;

        padding:
            20px 16px;

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


    /*
     * Konten promosi desktop disembunyikan
     * agar login benar-benar menjadi fokus utama
     * pada layar mobile.
     */

    .kk-gate__intro {
        display: none;
    }


    .kk-gate__card {
        width: min(100%, 390px);

        padding:
            34px 24px 28px;

        border-radius: 24px;

        /*
         * Mobile dibuat lebih transparan lagi.
         */
        background: rgba(255, 255, 255, 0.22);

        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        box-shadow:
            0 20px 55px rgba(20, 55, 25, 0.16),
            inset 0 1px 0 rgba(255, 255, 255, 0.55);
    }


    .kk-gate__logo-mark {
        width: 50px;
        height: 50px;
    }

    .kk-gate__logo-mark svg {
        width: 50px;
        height: 50px;
    }


    .kk-gate__brand {
        font-size: 29px;
    }


    .kk-gate__tagline {
        font-size: 14px;
    }


    .kk-gate__divider {
        margin-top: 22px;
        margin-bottom: 21px;
    }


    .kk-gate__welcome h2 {
        font-size: 22px;
    }


    .kk-gate__welcome p {
        font-size: 13px;
    }


    .kk-gate__form {
        margin-top: 22px;
    }


    .kk-gate__input-wrap input,
    .kk-gate__button {
        height: 54px;
    }

}


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

@media (max-width: 380px) {

    .kk-gate__content {
        padding:
            14px 12px;
    }

    .kk-gate__card {
        padding:
            28px 20px 24px;

        border-radius: 21px;
    }

    .kk-gate__logo-mark {
        width: 44px;
        height: 44px;
    }

    .kk-gate__logo-mark svg {
        width: 44px;
        height: 44px;
    }

    .kk-gate__brand {
        font-size: 26px;
    }

    .kk-gate__divider {
        margin-top: 18px;
        margin-bottom: 18px;
    }

    .kk-gate__private {
        margin-top: 22px;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .kk-gate__button,
    .kk-gate__input-wrap input {
        transition: none;
    }

}