:root {
    --green: #008b34;
    --green-dark: #006627;
    --green-deep: #00491d;
    --green-soft: #e9f8ef;
    --yellow: #d9e62e;
    --text: #252932;
    --muted: #5d6573;
    --border: #dfe6e1;
    --danger: #d92d20;
    --danger-bg: #fff1f0;
    --success: #16834a;
    --success-bg: #edfdf3;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #ffffff;
}

button,
input {
    font: inherit;
}

.auth-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-columns: 54% 46%;
    overflow: hidden;
    background: #ffffff;
}

.auth-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.28;
}

.auth-left,
.auth-right {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.auth-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 3.2vw, 42px);
    color: #ffffff;
    background: var(--green);
}

.auth-right {
    display: grid;
    place-items: center;
    padding: clamp(20px, 3vw, 42px);
    background: #ffffff;
}

.auth-bg-hero {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 110px;
    width: min(660px, 72%);
    opacity: 0.34;
    pointer-events: none;
    transform: translateX(-50%);
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.20));
}

.auth-bg-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 139, 52, 0), rgba(0, 139, 52, 0.20)),
        radial-gradient(circle at center, transparent 35%, rgba(0, 139, 52, 0.32) 100%);
    pointer-events: none;
}

.auth-bg-hero img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.auth-shape,
.auth-dots,
.auth-cross {
    position: absolute;
    pointer-events: none;
}

.auth-shape-1 {
    width: 380px;
    height: 380px;
    left: -170px;
    top: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.auth-shape-2 {
    width: 130px;
    height: 130px;
    right: 78px;
    top: -68px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
}

.auth-left::before {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: 34px;
    top: 170px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

.auth-left::after {
    content: "";
    position: absolute;
    width: 34px;
    height: 34px;
    right: 118px;
    bottom: 135px;
    opacity: 0.16;
    background:
        linear-gradient(45deg, transparent 42%, #ffffff 42%, #ffffff 58%, transparent 58%),
        linear-gradient(-45deg, transparent 42%, #ffffff 42%, #ffffff 58%, transparent 58%);
}

.auth-dots {
    width: 96px;
    height: 58px;
    opacity: 0.58;
    background-image: radial-gradient(rgba(255, 255, 255, 0.72) 2px, transparent 2.5px);
    background-size: 11px 11px;
}

.auth-dots-1 {
    right: 48px;
    top: 245px;
}

.auth-dots-2 {
    left: 44px;
    bottom: 118px;
}

.auth-left-center {
    position: relative;
    z-index: 2;
    width: min(640px, 100%);
    margin: 0 auto;
    text-align: center;
    transform: translateY(-22px);
}

.auth-logo-wrap {
    width: 120px;
    height: 120px;
    display: grid;
    place-items: center;
    margin: 0 auto 32px;
}

.auth-logo-wrap img {
    width: 150%;
    height: 100%;
    object-fit: contain;
}

.auth-logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #ffffff;
    font-size: 54px;
}

.auth-title-block span {
    display: block;
    margin: 30px 0 14px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}

.auth-title-block h1 {
    margin: 0;
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.auth-title-block p {
    max-width: 520px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.5;
}

.auth-title-line {
    width: 92px;
    height: 4px;
    margin: 24px auto 0;
    border-radius: 999px;
    background: var(--yellow);
}

.auth-description {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 38px auto 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.auth-benefits {
    position: absolute;
    z-index: 2;
    left: clamp(22px, 4vw, 54px);
    right: clamp(22px, 4vw, 54px);
    bottom: clamp(20px, 3vh, 32px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 22px);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.auth-benefit {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.auth-benefit i {
    flex: 0 0 auto;
    color: var(--yellow);
    font-size: clamp(18px, 1.4vw, 22px);
}

.auth-benefit strong {
    display: block;
    color: #ffffff;
    font-size: clamp(10px, 0.85vw, 12px);
    font-weight: 850;
    line-height: 1.15;
}

.auth-benefit span {
    display: block;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.64);
    font-size: clamp(9px, 0.75vw, 11px);
    font-weight: 650;
}

.auth-form-card {
    position: relative;
    z-index: 2;
    width: min(430px, 88%);
    padding: clamp(24px, 3vh, 34px) clamp(26px, 3vw, 40px);
    border: 1px solid rgba(0, 139, 52, 0.10);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 54px rgba(20, 41, 28, 0.10);
}

.auth-lock {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
}

.auth-lock i {
    color: var(--green);
    font-size: 46px;
}

.auth-heading {
    margin-bottom: 20px;
    text-align: center;
}

.auth-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(22px, 1.8vw, 28px);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.auth-heading p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: clamp(11px, 0.9vw, 13px);
    line-height: 1.5;
}

.auth-form {
    display: grid;
    gap: 13px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    color: var(--text);
    font-size: 11px;
    font-weight: 850;
}

.auth-input {
    position: relative;
}

.auth-input > i {
    position: absolute;
    left: 14px;
    top: 50%;
    z-index: 1;
    color: #8a958f;
    font-size: 18px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input input {
    width: 100%;
    height: 44px;
    padding: 0 44px 0 42px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    color: var(--text);
    background: #ffffff;
    font-size: 13px;
    font-weight: 650;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.auth-input input::placeholder {
    color: #9aa3ad;
}

.auth-input input:focus {
    border-color: rgba(0, 139, 52, 0.38);
    box-shadow: 0 0 0 3px rgba(0, 139, 52, 0.08);
}

.auth-input input.is-invalid,
.auth-input input:invalid:not(:placeholder-shown) {
    border-color: rgba(217, 45, 32, 0.42);
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.06);
}

.auth-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #77837d;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-eye:hover {
    color: var(--green);
    background: var(--green-soft);
}

.auth-eye i {
    font-size: 17px;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 1px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.auth-check input {
    width: 14px;
    height: 14px;
    accent-color: var(--green);
}

.auth-link {
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.auth-link:hover {
    color: var(--green-dark);
}

.auth-submit {
    width: 100%;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 3px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 10px 24px rgba(0, 139, 52, 0.15);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.auth-submit i {
    font-size: 17px;
}

.auth-submit:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 139, 52, 0.16);
}

.auth-ready [data-auth-animate] {
    opacity: 0;
    transition:
        opacity 420ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
        filter 420ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--auth-delay, 0ms);
}

.auth-ready [data-auth-animate="fade-right"] {
    transform: translateX(-18px);
}

.auth-ready [data-auth-animate="fade-left"] {
    transform: translateX(18px);
}

.auth-ready [data-auth-animate="fade-up"] {
    transform: translateY(16px);
}

.auth-ready [data-auth-animate="fade-down"] {
    transform: translateY(-16px);
}

.auth-ready [data-auth-animate="zoom-in"] {
    transform: scale(0.94);
    filter: blur(1px);
}

.auth-ready [data-auth-animate].is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
    filter: blur(0);
}

/* Laptop pendek: lebar laptop/desktop, tapi tinggi browser kecil */
@media (max-height: 760px) and (min-width: 861px) {
    .auth-left {
        padding: 24px 42px;
    }

    .auth-bg-hero {
        bottom: 92px;
        width: min(560px, 64%);
        opacity: 0.30;
    }

    .auth-left-center {
        transform: translateY(-16px);
    }

    .auth-logo-wrap {
        width: 96px;
        height: 96px;
        margin: 0 auto 24px;
    }

    .auth-title-block span {
        margin: 40px 0 10px;
        font-size: 13px;
    }

    .auth-title-block h1 {
        font-size: 25px;
    }

    .auth-title-block p {
        margin-top: 14px;
        font-size: 17px;
        font-weight: bold;
    }

    .auth-title-line {
        width: 82px;
        height: 4px;
        margin-top: 20px;
    }

    .auth-description {
        margin-top: 28px;
        font-size: 15px;
    }

    .auth-benefits {
        bottom: 18px;
        gap: 14px;
        padding-top: 12px;
    }

    .auth-form-card {
        width: min(410px, 88%);
        padding: 24px 34px;
    }

    .auth-lock {
        width: 42px;
        height: 42px;
        margin-bottom: 12px;
    }

    .auth-lock i {
        font-size: 40px;
    }

    .auth-heading {
        margin-bottom: 16px;
    }

    .auth-heading h2 {
        font-size: 24px;
    }

    .auth-heading p {
        font-size: 12px;
    }

    .auth-form {
        gap: 11px;
    }

    .auth-input input {
        height: 40px;
        font-size: 12px;
    }

    .auth-submit {
        height: 42px;
        font-size: 12px;
    }
}

/* Tablet */
@media (max-width: 860px) {
    html,
    body {
        overflow: auto;
    }

    .auth-page {
        min-height: 100dvh;
        height: auto;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .auth-left {
        min-height: 38dvh;
        padding: 24px 18px;
    }

    .auth-bg-hero {
        bottom: 84px;
        width: min(390px, 74%);
        opacity: 0.18;
    }

    .auth-left-center {
        width: min(520px, 100%);
        transform: none;
    }

    .auth-logo-wrap {
        width: 82px;
        height: 82px;
        margin-bottom: 20px;
    }

    .auth-title-block span {
        margin: 0 0 10px;
        font-size: 12px;
        letter-spacing: 0.25em;
    }

    .auth-title-block h1 {
        font-size: 30px;
    }

    .auth-title-block p {
        margin-top: 12px;
        font-size: 15px;
    }

    .auth-title-line {
        width: 76px;
        height: 3px;
        margin-top: 18px;
    }

    .auth-description {
        max-width: 500px;
        margin-top: 24px;
        font-size: 14px;
    }

    .auth-benefits {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 24px;
        padding-top: 14px;
    }

    .auth-benefit {
        justify-content: center;
        text-align: left;
    }

    .auth-right {
        min-height: 62dvh;
        padding: 24px 16px;
        overflow: visible;
    }

    .auth-form-card {
        width: min(440px, 100%);
        padding: 26px 20px;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .auth-shape-1 {
        width: 280px;
        height: 280px;
        left: -140px;
        top: 38px;
    }

    .auth-shape-2 {
        width: 95px;
        height: 95px;
        right: 34px;
        top: -50px;
    }

    .auth-dots-1,
    .auth-dots-2 {
        display: none;
    }

    .auth-logo-wrap {
        width: 66px;
        height: 66px;
    }

    .auth-title-block span {
        font-size: 10px;
        letter-spacing: 0.22em;
    }

    .auth-title-block h1 {
        font-size: 23px;
    }

    .auth-title-block p {
        font-size: 11px;
    }

    .auth-description {
        margin-top: 18px;
        font-size: 11px;
    }

    .auth-bg-hero {
        bottom: 102px;
        width: 82%;
        opacity: 0.13;
    }

    .auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .auth-link {
        white-space: normal;
    }

    .auth-form-card {
        padding: 24px 18px;
        border-radius: 17px;
    }

    .auth-heading h2 {
        font-size: 22px;
    }

    .auth-input input {
        height: 42px;
    }

    .auth-submit {
        height: 43px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-ready [data-auth-animate],
    .auth-ready [data-auth-animate].is-visible {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .auth-particles {
        display: none;
    }
}