:root {
    --navy-950: #0d2554;
    --navy-900: #112f68;
    --navy-800: #173b7a;
    --navy-700: #24539a;
    --gold-600: #c99e2d;
    --gold-500: #d7ad3d;
    --ink: #14213d;
    --muted: #6f7f95;
    --line: #cad5e3;
    --surface: #ffffff;
    --page-left: #f9fbfd;
    --page-right: #eaf4fb;
    --danger-bg: #fff4f3;
    --danger-border: #f0c4bf;
    --danger-text: #a8352b;
}

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

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--page-right);
}

body.sisiketan-login {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--ink);
    background: var(--page-right);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(390px, 50%) minmax(390px, 50%);
    overflow: hidden;
}

/* LEFT */
.login-left {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 15% 9%, rgba(35, 80, 145, .055), transparent 31%),
        linear-gradient(180deg, #fbfcfe 0%, #f7fafc 100%);
    box-shadow: 18px 0 55px rgba(29, 63, 107, .055);
    z-index: 2;
}

.login-left-inner {
    width: min(100%, 490px);
    margin: auto;
    padding: clamp(42px, 6vh, 68px) 40px;
}

.uwg-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 0 clamp(48px, 7vh, 72px);
}

.uwg-emblem {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.uwg-wordmark {
    display: grid;
    color: #15356e;
    line-height: .92;
    letter-spacing: .005em;
}

.uwg-wordmark span {
    font-size: 18px;
    font-weight: 500;
}

.uwg-wordmark strong {
    margin: 2px 0 3px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.015em;
}

.login-heading {
    margin: 0 0 22px;
}

.login-heading p {
    margin: 0 0 3px;
    font-size: clamp(20px, 1.65vw, 26px);
    line-height: 1.3;
    letter-spacing: -.018em;
    color: #102a5a;
    font-weight: 400;
}

.login-heading p strong {
    font-weight: 800;
}

.login-heading h1 {
    margin: 0;
    color: #112e65;
    font-size: clamp(30px, 2.3vw, 40px);
    line-height: 1.12;
    letter-spacing: -.035em;
    font-weight: 800;
}

.login-card {
    width: 100%;
    padding: 27px 27px 28px;
    border: 1px solid rgba(201, 213, 228, .98);
    border-radius: 15px;
    background: rgba(255, 255, 255, .97);
    box-shadow:
        0 14px 38px rgba(25, 54, 96, .075),
        0 2px 7px rgba(25, 54, 96, .025);
}

.form-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 18px;
    padding: 11px 13px;
    border: 1px solid var(--danger-border);
    border-radius: 9px;
    background: var(--danger-bg);
    color: var(--danger-text);
    font-size: 13px;
    line-height: 1.45;
}

.form-alert svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.form-group {
    margin: 0 0 18px;
}

.form-group label {
    display: block;
    margin: 0 0 8px;
    color: #152747;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

.control {
    position: relative;
}

.control input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 48px;
    border: 1px solid #c7d3e1;
    border-radius: 9px;
    outline: 0;
    color: #203351;
    background: #fff;
    font-size: 14.5px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.control input::placeholder {
    color: #98a6b8;
    opacity: 1;
}

.control input:hover {
    border-color: #b3c2d4;
}

.control input:focus {
    border-color: #315eaa;
    box-shadow: 0 0 0 3px rgba(49, 94, 170, .11);
}

.control-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    fill: none;
    stroke: #8192a8;
    stroke-width: 1.75;
    pointer-events: none;
}

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

.password-toggle:hover {
    color: #274f93;
    background: #f3f6fa;
}

.password-toggle:focus-visible {
    outline: 2px solid #315eaa;
    outline-offset: 1px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
}

.password-toggle .eye-hide {
    display: none;
}

.password-toggle.is-visible .eye-show {
    display: none;
}

.password-toggle.is-visible .eye-hide {
    display: block;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 24px;
    margin: -1px 0 23px;
    font-size: 13px;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #485a72;
    cursor: pointer;
    user-select: none;
}

.remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-ui {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid #b7c4d4;
    border-radius: 4px;
    background: #fff;
    transition: .16s ease;
}

.remember input:checked + .checkbox-ui {
    border-color: #24549a;
    background: #24549a;
}

.remember input:checked + .checkbox-ui::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.remember input:focus-visible + .checkbox-ui {
    outline: 2px solid rgba(49, 94, 170, .35);
    outline-offset: 2px;
}

.forgot-password {
    color: var(--gold-600);
    font-weight: 700;
    white-space: nowrap;
    cursor: default;
}

.submit-button {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 0 22px;
    border: 0;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(90deg, #2d5ca8 0%, #1c488a 100%);
    box-shadow: 0 10px 22px rgba(29, 74, 140, .18);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .015em;
    cursor: pointer;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}

.submit-button:hover {
    filter: brightness(1.035);
    transform: translateY(-1px);
    box-shadow: 0 13px 27px rgba(29, 74, 140, .23);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(48, 96, 175, .28);
    outline-offset: 3px;
}

.submit-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* RIGHT */
.login-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 66% 28%, rgba(255,255,255,.85), transparent 26%),
        radial-gradient(circle at 42% 65%, rgba(255,255,255,.62), transparent 32%),
        linear-gradient(145deg, #edf6fc 0%, #e6f1fa 100%);
}

.login-right::before,
.login-right::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(68, 127, 192, .055);
    border-radius: 50%;
    pointer-events: none;
}

.login-right::before {
    width: 580px;
    height: 580px;
    right: -360px;
    top: -360px;
}

.login-right::after {
    width: 510px;
    height: 510px;
    left: -330px;
    bottom: -340px;
}

.right-inner {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    padding: 42px 42px 30px;
    text-align: center;
}

.product-heading {
    position: relative;
    z-index: 2;
    margin: 0 0 15px;
}

.product-heading h2 {
    margin: 0;
    color: #11316c;
    font-size: clamp(48px, 5vw, 74px);
    line-height: .98;
    letter-spacing: -.04em;
    font-weight: 850;
}

.product-heading p {
    margin: 8px 0 0;
    color: var(--gold-600);
    font-size: clamp(19px, 1.75vw, 28px);
    line-height: 1.18;
    font-weight: 750;
    letter-spacing: -.02em;
}

.illustration-wrap {
    width: 100%;
    display: grid;
    place-items: center;
    margin-top: 6px;
}

.illustration {
    display: block;
    width: min(100%, 680px);
    height: auto;
    max-height: 590px;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(28, 60, 100, .08));
}

/* LARGE SCREENS */
@media (min-width: 1500px) {
    .login-left-inner {
        width: min(100%, 520px);
    }

    .right-inner {
        width: min(100%, 850px);
    }

    .illustration {
        width: min(100%, 760px);
    }
}

/* TABLET */
@media (max-width: 980px) {
    .login-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        overflow: visible;
        background: #f7fafc;
    }

    .login-right {
        grid-row: 1;
        min-height: 310px;
        padding: 18px 0 4px;
    }

    .right-inner {
        width: min(100%, 680px);
        padding: 28px 30px 8px;
    }

    .product-heading h2 {
        font-size: clamp(40px, 8vw, 58px);
    }

    .product-heading p {
        font-size: clamp(17px, 3vw, 22px);
    }

    .illustration {
        width: min(75vw, 460px);
        max-height: 250px;
    }

    .login-left {
        align-items: flex-start;
        box-shadow: none;
    }

    .login-left-inner {
        width: min(100%, 560px);
        padding: 38px 30px 58px;
    }

    .uwg-brand {
        margin-bottom: 38px;
    }
}

/* MOBILE */
@media (max-width: 640px) {
    body.sisiketan-login {
        background: #f7fafc;
    }

    .login-right {
        min-height: auto;
        padding: 28px 18px 20px;
    }

    .right-inner {
        padding: 0;
    }

    .product-heading {
        margin: 0;
    }

    .product-heading h2 {
        font-size: clamp(34px, 12vw, 48px);
    }

    .product-heading p {
        margin-top: 6px;
        font-size: clamp(15px, 4.5vw, 19px);
    }

    .illustration-wrap {
        display: none;
    }

    .login-left-inner {
        padding: 32px 20px 44px;
    }

    .uwg-brand {
        gap: 12px;
        margin-bottom: 34px;
    }

    .uwg-emblem {
        width: 52px;
        height: 52px;
    }

    .uwg-wordmark span {
        font-size: 14px;
    }

    .uwg-wordmark strong {
        font-size: 19px;
    }

    .login-heading {
        margin-bottom: 18px;
    }

    .login-heading p {
        font-size: 19px;
    }

    .login-heading h1 {
        font-size: 30px;
    }

    .login-card {
        padding: 23px 20px 24px;
        border-radius: 14px;
    }

    .control input {
        height: 52px;
        font-size: 14px;
    }

    .form-options {
        font-size: 12.5px;
    }

    .submit-button {
        height: 51px;
    }
}

/* VERY SMALL MOBILE */
@media (max-width: 390px) {
    .login-left-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .login-card {
        padding-left: 17px;
        padding-right: 17px;
    }

    .form-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .forgot-password {
        align-self: flex-end;
    }
}

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