body {
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 10%, rgba(245, 158, 11, .14), transparent 24rem),
        radial-gradient(circle at 88% 85%, rgba(18, 108, 67, .14), transparent 28rem),
        #eef4f0;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    align-items: safe center;
    padding: 2rem;
}

.login-shell {
    width: min(100%, 980px);
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(330px, .88fr) minmax(430px, 1.12fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(17, 75, 47, .08);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(18, 58, 39, .16);
}

.login-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 2.5rem;
    color: #fff;
    background: linear-gradient(150deg, #0a3825 0%, #0d6740 55%, #16925a 100%);
}

.login-visual::before,
.login-visual::after {
    content: '';
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
}

.login-visual::before {
    width: 430px;
    height: 430px;
    top: -230px;
    right: -230px;
}

.login-visual::after {
    width: 300px;
    height: 300px;
    left: -170px;
    bottom: -145px;
}

.login-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.login-brand-logo {
    display: block;
    width: 108px;
    height: 108px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 20px;
    background: #123d27;
    box-shadow: 0 12px 28px rgba(3, 30, 18, .22);
}

.visual-copy {
    margin: 2rem 0 1.5rem;
}

.visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: 1rem;
    color: #d8f7e6;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.visual-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: #ffd66b;
}

.visual-copy h1 {
    max-width: 330px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.2vw, 2.65rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.visual-copy p {
    max-width: 330px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: .92rem;
    line-height: 1.7;
}

.visual-points {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.visual-point {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .7rem;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    color: rgba(255, 255, 255, .83);
    background: rgba(5, 42, 25, .2);
    font-size: .72rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.visual-point i {
    width: 13px;
    height: 13px;
    color: #ffd66b;
}

.login-panel {
    display: flex;
    align-items: center;
    padding: 3rem clamp(2.5rem, 5vw, 4.5rem);
    background: #fff;
}

.login-form-wrap {
    width: 100%;
    max-width: 430px;
    margin: auto;
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem;
    margin-bottom: 2rem;
    padding: .35rem;
    border: 1px solid #e3ebe7;
    border-radius: 999px;
    background: #f4f7f5;
}

.login-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    border-radius: 999px;
    color: #67736c;
    font-size: .86rem;
    font-weight: 700;
    transition: .2s ease;
}

.login-tab:hover {
    color: #0d6740;
}

.login-tab.active {
    color: #fff;
    background: linear-gradient(135deg, #0d6740, #129158);
    box-shadow: 0 7px 18px rgba(18, 108, 67, .2);
}

.login-heading {
    margin-bottom: 1.8rem;
}

.login-heading h2 {
    margin: 0;
    color: #173b2a;
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.login-heading p {
    margin: .55rem 0 0;
    color: #7a8780;
    font-size: .88rem;
    line-height: 1.55;
}

.login-alert {
    display: none;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border: 1px solid #fecaca;
    border-radius: 12px;
    color: #991b1b;
    background: #fef2f2;
    font-size: .8rem;
    line-height: 1.45;
}

.login-alert.show {
    display: flex;
}

.login-alert.success {
    display: flex;
    border-color: #a7f3d0;
    color: #065f46;
    background: #ecfdf5;
}

.login-alert i {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.login-group {
    margin-bottom: 1rem;
}

.login-label {
    display: block;
    margin-bottom: .42rem;
    color: #33493e;
    font-size: .79rem;
    font-weight: 700;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    top: 50%;
    left: .95rem;
    width: 18px;
    height: 18px;
    color: #91a098;
    transform: translateY(-50%);
    pointer-events: none;
}

.login-input {
    width: 100%;
    height: 52px;
    padding: 0 3rem 0 2.85rem;
    border: 1.5px solid #dfe7e2;
    border-radius: 15px;
    outline: none;
    color: #1f362b;
    background: #fbfcfb;
    font-size: .9rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-input::placeholder {
    color: #a2aca6;
}

.login-input:hover {
    border-color: #c8d6ce;
}

.login-input:focus {
    border-color: #168352;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18, 108, 67, .1);
}

.login-input.centered {
    padding: 0 1rem;
    text-align: center;
    letter-spacing: .28rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.05rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .7rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 10px;
    color: #7e8d85;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: #0d6740;
    background: #edf7f1;
}

.password-toggle i {
    width: 18px;
    height: 18px;
}

.two-fa-helper {
    margin: -.2rem 0 .9rem;
    color: #7a8780;
    font-size: .75rem;
    text-align: center;
}

.two-fa-helper a {
    font-weight: 700;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .25rem 0 1.25rem;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #6f7d76;
    font-size: .78rem;
    cursor: pointer;
}

.remember-me input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #126c43;
}

.forgot-link {
    color: #116c43;
    font-size: .78rem;
    font-weight: 700;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-submit {
    width: 100%;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #0d6740, #129158);
    box-shadow: 0 12px 25px rgba(18, 108, 67, .22);
    font-size: .9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(18, 108, 67, .28);
}

.login-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.login-submit i {
    width: 17px;
    height: 17px;
}

.login-footnote {
    margin-top: 1.35rem;
    color: #89948e;
    font-size: .76rem;
    line-height: 1.5;
    text-align: center;
}

.login-footnote a {
    color: #116c43;
    font-weight: 700;
}

@media (max-width: 800px) {
    .login-page {
        display: block;
        padding: 0;
        background: #fff;
    }

    .login-shell {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-visual {
        min-height: 250px;
        flex: 0 0 250px;
        padding: 1.35rem 1.5rem 0;
    }

    .login-brand {
        margin: auto;
    }

    .login-brand-logo {
        width: 145px;
        height: 145px;
        border-radius: 24px;
    }

    .visual-copy,
    .visual-points {
        display: none;
    }

    .login-panel {
        position: relative;
        z-index: 2;
        flex: 1;
        align-items: flex-start;
        margin-top: -28px;
        padding: 1.5rem 1.35rem 2rem;
        border-radius: 28px 28px 0 0;
    }

    .login-form-wrap {
        max-width: 440px;
    }

    .login-tabs {
        margin-bottom: 1.5rem;
    }

    .login-heading {
        margin-bottom: 1.35rem;
    }

    .login-heading h2 {
        font-size: 1.55rem;
    }
}

@media (max-width: 380px) {
    .login-visual {
        min-height: 220px;
        flex-basis: 220px;
    }

    .login-brand-logo {
        width: 128px;
        height: 128px;
    }

    .login-panel {
        padding-inline: 1rem;
    }

    .login-options {
        align-items: flex-start;
        gap: .65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Variasi halaman daftar dan pemulihan akun */
.register-shell {
    width: min(100%, 1100px);
    min-height: 700px;
    grid-template-columns: minmax(320px, .76fr) minmax(570px, 1.24fr);
}

.register-form-wrap {
    max-width: 560px;
}

.register-form-wrap .login-tabs {
    margin-bottom: 1.4rem;
}

.register-form-wrap .login-heading {
    margin-bottom: 1.35rem;
}

.login-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
}

.login-form-grid .login-group.full-width {
    grid-column: 1 / -1;
}

.login-required {
    color: #d97706;
}

.login-alert ul {
    margin: 0;
    padding-left: 1rem;
}

.login-alert li + li {
    margin-top: .2rem;
}

.forgot-shell {
    width: min(100%, 900px);
    min-height: 580px;
    grid-template-columns: minmax(310px, .9fr) minmax(430px, 1.1fr);
}

.forgot-shell .login-panel {
    padding-inline: clamp(2rem, 5vw, 4rem);
}

.forgot-note {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: -.15rem 0 1.2rem;
    padding: .75rem .85rem;
    border-radius: 12px;
    color: #65746c;
    background: #f4f7f5;
    font-size: .75rem;
    line-height: 1.5;
}

.forgot-note i {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    margin-top: 2px;
    color: #168352;
}

@media (max-width: 800px) {
    .register-shell,
    .forgot-shell {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
    }

    .login-form-grid {
        grid-template-columns: 1fr;
    }

    .login-form-grid .login-group.full-width {
        grid-column: auto;
    }

    .register-form-wrap .login-heading {
        margin-bottom: 1.2rem;
    }
}
