
/* ===================== BLUE THEME ===================== */
:root {
    --brand: #1D4ED8;
    --brand-light: #3B82F6;
    --brand-deep: #152F8F;
    --g1: #0B1E5C;
    --g2: #16359B;
    --g3: #2657E0;
    --blob1: #3B82F6;
    --blob2: #1E3A8A;
    --blob3: #93C5FD;
    --tint: #E9EFFD;
    --ring: rgba(29,78,216,.14);
    --glow: rgba(29,78,216,.45);
    --paper: #FFFFFF;
    --surface: #F6F8FC;
    --text: #0D1425;
    --muted: #5C6580;
    --border: #E3E8F2;
    --border-hi: #C7D1E2;
    --card: #FFFFFF;
    --legal: #8B92A5;
    --danger: #D64545;
    --dangerBg: #FEF5F5;
    --wash: #EDF3FF;
    --cardline: #DCE7F8;
    --inputbg: #F4F8FF;
    --inputline: #DCE6F8;
    --foot: #F1F6FF;
    --casual: #93C5FD;
    --sick: #FBBF6E;
    --earned: #7DE0C0;
    --head: "Plus Jakarta Sans",system-ui,sans-serif;
    --body: "Inter",system-ui,sans-serif;
    --formw: 452px;
}

/* ===================== BASE ===================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html, body {
    height: 100%
}

body {
    font-family: var(--body);
    background: linear-gradient(150deg,var(--g1) 0%,var(--g2) 50%,var(--g3) 100%);
    color: var(--text);
}

svg {
    display: block
}

.page {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

/* ===================== LEFT ===================== */
.brandside {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    color: #fff;
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    gap: 24px;
    padding: 36px 100px;
}

    .brandside > * {
        position: relative;
        z-index: 2;
        min-width: 0
    }

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
    z-index: 0
}

.b1 {
    width: 400px;
    height: 400px;
    background: var(--blob1);
    top: -140px;
    left: -110px;
    animation: drift1 24s ease-in-out infinite
}

.b2 {
    width: 340px;
    height: 340px;
    background: var(--blob2);
    bottom: -120px;
    right: -90px;
    animation: drift2 28s ease-in-out infinite
}

.b3 {
    width: 240px;
    height: 240px;
    background: var(--blob3);
    top: 46%;
    right: 10%;
    opacity: .2;
    animation: drift1 20s ease-in-out infinite reverse
}

@keyframes drift1 {
    0%,100% {
        transform: translate(0,0) scale(1)
    }

    50% {
        transform: translate(44px,36px) scale(1.1)
    }
}

@keyframes drift2 {
    0%,100% {
        transform: translate(0,0) scale(1)
    }

    50% {
        transform: translate(-38px,-30px) scale(1.07)
    }
}

.mesh {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .15;
    pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.5) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.5) 1px,transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(100% 80% at 28% 18%,#000,transparent 72%);
    mask-image: radial-gradient(100% 80% at 28% 18%,#000,transparent 72%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px
}

    .logo .mark {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        flex: none;
        background: #fff;
        display: grid;
        place-items: center;
        box-shadow: 0 4px 14px rgba(0,0,0,.2)
    }

.wordmark b {
    display: block;
    font-family: var(--head);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: .07em;
    line-height: 1
}

.wordmark em {
    display: block;
    font-style: normal;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-top: 5px;
}

.mid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    overflow: hidden
}

.pitch h1 {
    font-family: var(--head);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -.028em;
    max-width: 15ch;
    margin-bottom: 12px;
}

.pitch p {
    font-size: 14.5px;
    line-height: 1.6;
    color: rgba(255,255,255,.76);
    max-width: 42ch
}

.preview {
    position: relative;
    width: 100%;
    max-width: 412px;
    margin-top: 28px;
    padding-bottom: 30px
}

.panel {
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px;
    padding: 17px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px -22px rgba(0,0,0,.55);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.panel .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px
}

    .panel .head h3 {
        font-family: var(--head);
        font-size: 13.5px;
        font-weight: 700;
        letter-spacing: -.01em
    }

.pill {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    white-space: nowrap
}

.stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 16px
}

.stat b {
    display: block;
    font-family: var(--head);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15
}

.stat span {
    display: block;
    font-size: 10.5px;
    color: rgba(255,255,255,.7);
    margin-top: 1px
}

/* leave balance bar */
.seg {
    display: flex;
    gap: 3px;
    height: 9px;
    margin-bottom: 11px
}

    .seg i {
        display: block;
        height: 100%;
        border-radius: 3px;
        width: 0;
        animation: widen .9s cubic-bezier(.2,.8,.3,1) forwards
    }

@keyframes widen {
    to {
        width: var(--w)
    }
}

.key {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 10.5px;
    color: rgba(255,255,255,.78)
}

    .key div {
        display: flex;
        align-items: center;
        gap: 6px
    }

    .key s {
        width: 8px;
        height: 8px;
        border-radius: 2px;
        display: block;
        text-decoration: none
    }

    .key b {
        font-weight: 600;
        color: #fff
    }

/* quick actions */
.acts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
}

.act {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 10px;
    padding: 9px 8px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255,255,255,.92);
    opacity: 0;
    transform: translateY(8px);
    animation: rise .5s cubic-bezier(.2,.8,.3,1) forwards;
}

    .act svg {
        margin: 0 auto 5px
    }

.toast {
    position: absolute;
    right: -8px;
    bottom: 0;
    z-index: 3;
    background: var(--card);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 34px -14px rgba(0,0,0,.5);
    animation: float 6s ease-in-out .8s infinite;
    min-width: 212px;
}

    .toast .ic {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: var(--tint);
        display: grid;
        place-items: center;
        flex: none
    }

    .toast b {
        display: block;
        font-family: var(--head);
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3
    }

    .toast small {
        font-size: 10.5px;
        color: var(--muted)
    }

    .toast .txt {
        transition: opacity .35s
    }

        .toast .txt.swap {
            opacity: 0
        }

.can {
    display: grid;
    grid-template-columns: repeat(3,auto);
    justify-content: start;
    gap: 26px;
    font-size: 11.5px;
    color: rgba(255,255,255,.78)
}

    .can div {
        display: flex;
        align-items: center;
        gap: 7px
    }

    .can svg {
        flex: none
    }

/* ===================== RIGHT ===================== */
.formside {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: grid;
    /*grid-template-rows: auto minmax(0,1fr) auto;*/
    padding: 22px 40px 20px;
    overflow-y: auto;
    /* background:
    radial-gradient(540px 420px at 112% -12%, rgba(59,130,246,.38), transparent 64%),
    radial-gradient(480px 400px at -16% 116%, rgba(29,78,216,.28), transparent 64%),
    linear-gradient(165deg,#EEF4FF 0%,#DDE8FB 100%); */
}
/* blue dot texture, top-right, faded out */
.dots {
    position: absolute;
    top: 0;
    right: 0;
    width: 250px;
    height: 250px;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(29,78,216,.38) 1.5px, transparent 1.5px);
    background-size: 15px 15px;
    -webkit-mask-image: radial-gradient(125% 125% at 100% 0%,#000,transparent 66%);
    mask-image: radial-gradient(125% 125% at 100% 0%,#000,transparent 66%);
}

.topbar, .formwrap, .pagefoot {
    position: relative;
    z-index: 1
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.helpline {
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap
}

    .helpline a {
        color: var(--brand);
        font-weight: 600;
        text-decoration: none
    }

        .helpline a:hover {
            text-decoration: underline
        }

.locale {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
    border: 1px solid var(--cardline);
    border-radius: 20px;
    padding: 5px 11px;
    background: var(--paper);
}

.formwrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 20px 0
}

.form {
    position: relative;
    width: 100%;
    max-width: var(--formw);
    background: var(--paper);
    border: 1px solid var(--cardline);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 70px -34px rgba(29,78,216,.62), 0 4px 14px -6px rgba(13,20,37,.07);
}

/* blue header band */
.cardhead {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 28px;
    color: #fff;
    background: linear-gradient(120deg,var(--brand-deep) 0%,var(--brand) 52%,var(--brand-light) 100%);
}

    .cardhead::after {
        content: "";
        position: absolute;
        right: -40px;
        top: -70px;
        width: 190px;
        height: 190px;
        border-radius: 50%;
        background: rgba(255,255,255,.14);
        pointer-events: none;
    }

    .cardhead .mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        flex: none;
        background: rgba(255,255,255,.18);
        border: 1px solid rgba(255,255,255,.3);
        display: grid;
        place-items: center;
    }

    .cardhead b {
        display: block;
        font-family: var(--head);
        font-weight: 800;
        font-size: 17px;
        letter-spacing: .07em;
        line-height: 1
    }

    .cardhead em {
        display: block;
        font-style: normal;
        font-size: 9px;
        font-weight: 600;
        letter-spacing: .15em;
        text-transform: uppercase;
        color: rgba(255,255,255,.75);
        margin-top: 5px;
    }

.cardbody {
    padding: 26px 30px 24px
}

.cardfoot {
    padding: 15px 28px;
    text-align: center;
    background: var(--foot);
    border-top: 1px solid var(--cardline);
    font-size: 13px;
    color: var(--muted);
}

    .cardfoot a {
        color: var(--brand);
        font-weight: 600;
        text-decoration: none
    }

        .cardfoot a:hover {
            text-decoration: underline
        }

.form.done .cardfoot {
    display: none
}

h2 {
    font-family: var(--head);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin-bottom: 6px
}

.lede {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px
}

/* employee ID / email switch */
.tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #E9F0FE;
    border: 1px solid var(--inputline);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 18px;
}

.slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--paper);
    border-radius: 7px;
    box-shadow: 0 1px 3px rgba(13,20,37,.14);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}

.tabs.right .slider {
    transform: translateX(100%)
}

.tab {
    position: relative;
    z-index: 1;
    height: 34px;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: color .2s;
    border-radius: 7px;
}

    .tab.on {
        color: var(--brand)
    }

.field {
    margin-bottom: 15px
}

    .field[hidden] {
        display: none
    }

    .field label {
        display: block;
        font-size: 12.5px;
        font-weight: 600;
        margin-bottom: 6px
    }

.control {
    position: relative;
    display: flex;
    align-items: center
}

    .control .lead {
        position: absolute;
        left: 14px;
        color: var(--brand);
        opacity: .55;
        pointer-events: none;
        transition: opacity .2s
    }

    .control:focus-within .lead {
        opacity: 1
    }

input {
    width: 100%;
    height: 46px;
    border-radius: 10px;
    border: 1.5px solid var(--inputline);
    background: var(--inputbg);
    font-family: var(--body);
    font-size: 14px;
    color: var(--text);
    padding: 0 44px 0 42px;
    outline: none;
    transition: border-color .18s,box-shadow .18s;
}

    input::placeholder {
        color: var(--muted);
        opacity: .65
    }

    input:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 4px var(--ring)
    }

    input.bad {
        border-color: var(--danger);
        background: var(--dangerBg)
    }

#empid {
    letter-spacing: .06em;
    font-weight: 500
}

.eye {
    position: absolute;
    right: 5px;
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--muted);
    display: grid;
    place-items: center;
    border-radius: 7px
}

    .eye:hover {
        color: var(--brand);
        background: var(--tint)
    }

.hint {
    display: none;
    font-size: 12px;
    color: var(--danger);
    margin-top: 6px;
    line-height: 1.4
}

    .hint.on {
        display: flex;
        gap: 6px;
        align-items: flex-start
    }

    .hint svg {
        flex: none;
        margin-top: 1px
    }

.between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 20px
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    user-select: none
}

    .remember input {
        appearance: none;
        -webkit-appearance: none;
        width: 17px;
        height: 17px;
        border-radius: 5px;
        flex: none;
        cursor: pointer;
        border: 1.5px solid var(--inputline);
        background: var(--inputbg);
        padding: 0;
        transition: .16s;
    }

        .remember input:checked {
            background: var(--brand);
            border-color: var(--brand)
        }

            .remember input:checked::after {
                content: "";
                display: block;
                width: 4px;
                height: 8px;
                margin: 1.5px auto;
                border: solid #fff;
                border-width: 0 2px 2px 0;
                transform: rotate(43deg)
            }

.forgot {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap
}

    .forgot:hover {
        text-decoration: underline
    }

.submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(180deg,var(--brand-light),var(--brand));
    color: #fff;
    font-family: var(--head);
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 6px 16px -6px var(--glow);
    transition: transform .16s,box-shadow .22s;
    position: relative;
    overflow: hidden;
}

    .submit::after {
        content: "";
        position: absolute;
        top: 0;
        left: -70%;
        width: 45%;
        height: 100%;
        background: linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
        transform: skewX(-18deg);
        transition: left .55s ease;
    }

    .submit:hover {
        transform: translateY(-1.5px);
        box-shadow: 0 10px 22px -6px var(--glow)
    }

        .submit:hover::after {
            left: 120%
        }

    .submit:active {
        transform: translateY(0)
    }

    .submit[disabled] {
        cursor: default
    }

.spin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
    display: none
}

.submit.busy .spin {
    display: block
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.submit.good {
    background: linear-gradient(180deg,#22B573,#16A34A)
}

.split {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 12px
}

    .split::before, .split::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border)
    }

.sso {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid var(--inputline);
    background: var(--inputbg);
    cursor: pointer;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: border-color .18s,background .18s,transform .16s;
}

    .sso:hover {
        border-color: var(--brand-light);
        background: #EAF1FE;
        transform: translateY(-1px)
    }


.pagefoot {
    display: flex;
    justify-content: center;
    gap: 22px;
    font-size: 11.5px;
    color: var(--legal)
}

    .pagefoot a {
        color: var(--legal);
        text-decoration: none
    }

        .pagefoot a:hover {
            color: var(--brand)
        }

/* success */
.doneBox {
    display: none;
    text-align: center
}

    .doneBox.on {
        display: block;
        animation: rise .45s cubic-bezier(.2,.8,.3,1) forwards
    }

    .doneBox .check {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0 auto 18px;
        background: var(--tint);
        display: grid;
        place-items: center;
        animation: pulse 1.6s ease-in-out infinite
    }

@keyframes pulse {
    0%,100% {
        box-shadow: 0 0 0 0 var(--ring)
    }

    50% {
        box-shadow: 0 0 0 14px transparent
    }
}

.doneBox p {
    font-size: 13.5px;
    color: var(--muted);
    margin: 8px 0 22px
}

.bar {
    height: 4px;
    border-radius: 4px;
    background: var(--border);
    overflow: hidden;
    max-width: 240px;
    margin: 0 auto 20px
}

    .bar i {
        display: block;
        height: 100%;
        width: 0;
        background: var(--brand);
        animation: load 2.4s cubic-bezier(.4,0,.2,1) forwards
    }

@keyframes load {
    to {
        width: 100%
    }
}

.reset {
    background: none;
    border: 0;
    color: var(--brand);
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline
}

.rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .6s cubic-bezier(.2,.8,.3,1) forwards
}

@keyframes rise {
    to {
        opacity: 1;
        transform: none
    }
}

.r1 {
    animation-delay: .05s
}

.r2 {
    animation-delay: .12s
}

.r3 {
    animation-delay: .19s
}

.r4 {
    animation-delay: .26s
}

.r5 {
    animation-delay: .33s
}

.r6 {
    animation-delay: .4s
}

.r7 {
    animation-delay: .47s
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px
}

/* ===================== RESPONSIVE ===================== */
@media (max-width:1240px) {
    .brandside {
        padding: 30px 34px
    }

    .formside {
        padding: 20px 30px 18px
    }
}

@media (max-width:1080px) {
    .page {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100dvh;
        overflow: visible
    }

    .brandside {
        display: none
    }

    .formside {
        padding: 20px 20px 22px;
        min-height: 100dvh;
        overflow: visible
    }
}

@media (max-width:430px) {
    .cardhead {
        padding: 17px 20px
    }

    .cardbody {
        padding: 22px 20px 20px
    }

    .cardfoot {
        padding: 13px 20px
    }

    .dots {
        width: 170px;
        height: 170px
    }

    h2 {
        font-size: 23px
    }

    .pagefoot {
        gap: 16px
    }

    .locale span {
        display: none
    }
}

@media (max-height:780px) {
    .brandside {
        padding: 26px 34px;
        gap: 16px
    }

    .preview {
        margin-top: 20px
    }

   

    .formwrap {
        padding: 12px 0
    }

    .cardhead {
        padding: 16px 28px
    }

    .cardbody {
        padding: 22px 30px 20px
    }

    .lede {
        margin-bottom: 18px
    }
}



@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .05s !important
    }

    .rise, .act {
        opacity: 1;
        transform: none
    }

    .seg i {
        width: var(--w)
    }
}



@media (max-height:780px) {

    .usernameinput {
        border: 1px solid #7EACDE !important;
        /* box-shadow: rgb(0 0 0 / 20%) 0px 0px 15px !important; */
        border-radius: 28px;
        height: 30px !important;
        margin-bottom: 0px !important;
    }


    .user-svg img {
        position: absolute;
        z-index: 10;
        top: 8px;
        left: 12px;
        width: 15px;
        height: 15px;
    }


    .logtext {
        color: #4285f4;
        font-weight: 600;
        font-size: 14px;
        text-align: center;
        padding: 3px 0px;
    }

    .version {
        text-align: center;
        z-index: 100;
        padding-top: 0px;
        width: 100%;
    }
   