﻿:root {
    --primary: #0a3d6b;
    --secondary: #1565c0;
    --accent: #00897b;
    --ink: #17324a;
    --muted: #6f8090;
    --line: #dce6ee;
    --page: #f0f5fb;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: "Poppins", sans-serif;
    background: var(--page);
}

/* ── Loading overlay ── */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.72);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading {
    width: 48px;
    height: 48px;
    border: 5px solid #dce6ee;
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: ldSpin 0.85s linear infinite;
}

@@keyframes ldSpin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Shell & blobs ── */
.page-shell {
    position: relative;
    min-height: 100vh;
    padding: 34px clamp(22px,6vw,96px) 28px;
    overflow: hidden;
    isolation: isolate;
}

    .page-shell::before {
        position: absolute;
        z-index: -2;
        top: -235px;
        right: -160px;
        width: min(57vw,760px);
        height: min(57vw,760px);
        border-radius: 43% 57% 58% 42% / 43% 41% 59% 57%;
        content: "";
        background: linear-gradient(145deg,#1565c0,#0a3d6b 74%);
        box-shadow: 0 36px 80px rgba(10,61,107,.22);
        transform: rotate(-18deg);
    }

    .page-shell::after {
        position: absolute;
        z-index: -1;
        right: 10%;
        bottom: -145px;
        width: 305px;
        height: 305px;
        border: 42px solid rgba(0,137,123,.10);
        border-radius: 50%;
        content: "";
    }

/* ── Topbar ── */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1260px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
}

    .brand img {
        height: 275px !important;
        width: auto;
    }

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: .72rem;
    font-weight: 500;
}

    .secure-badge svg {
        width: 16px;
        height: 16px;
        color: var(#ffffff);
    }

/* ── Workspace grid ── */
.workspace {
    display: grid;
    max-width: 1130px;
    min-height: calc(100vh - 145px);
    margin: 0 auto;
    grid-template-columns: minmax(310px,.88fr) minmax(360px,450px);
    align-items: center;
    gap: clamp(48px,10vw,165px);
}

.intro {
    padding: 60px 0;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 19px;
    color: var(--accent);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

    .kicker::before {
        width: 25px;
        height: 2px;
        content: "";
        background: currentColor;
    }

.intro h1 {
    max-width: 530px;
    margin: 0;
    color: #0e2e4a;
    font-size: clamp(2.35rem,4.8vw,4.45rem);
    font-weight: 700;
    letter-spacing: -.06em;
    line-height: 1.08;
}

    .intro h1 span {
        color: #1565c0;
    }

.intro > p {
    max-width: 460px;
    margin: 24px 0 34px;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.8;
}

.benefits {
    display: grid;
    max-width: 450px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    color: #4c6577;
    font-size: .73rem;
    font-weight: 500;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(220,230,238,.85);
    border-radius: 13px;
}

.benefit-icon {
    display: grid;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--accent);
    background: #e5f5f3;
    border-radius: 9px;
}

    .benefit-icon svg {
        width: 16px;
        height: 16px;
    }

/* ── Card wrapper (holds login + otp) ── */
.card-slot {
    position: relative;
}

/* ── Login / OTP card ── */
.login-card {
    position: relative;
    padding: clamp(29px,4vw,40px);
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(10,61,107,.15);
    backdrop-filter: blur(10px);
}

    .login-card::before {
        position: absolute;
        top: 0;
        left: 40px;
        width: 58px;
        height: 4px;
        border-radius: 0 0 8px 8px;
        content: "";
        background: linear-gradient(90deg,var(--accent),#4db6ac);
    }

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

    .card-top h2 {
        margin: 0;
        color: #0e2e4a;
        font-size: 1.45rem;
        font-weight: 700;
        letter-spacing: -.035em;
    }

    .card-top p {
        margin: 5px 0 0;
        color: #80909d;
        font-size: .72rem;
    }

.lock-circle {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--secondary);
    background: #e8f1fb;
    border-radius: 50%;
    flex-shrink: 0;
}

    .lock-circle svg {
        width: 18px;
        height: 18px;
    }

/* ── Fields ── */
.field {
    margin-top: 14px;
}

    .field label {
        display: block;
        margin-bottom: 6px;
        color: #4e6d82;
        font-size: .67rem;
        font-weight: 600;
        letter-spacing: .02em;
        text-transform: uppercase;
    }

.input-holder {
    position: relative;
}

    .input-holder .field-icon {
        position: absolute;
        top: 50%;
        left: 14px;
        width: 17px;
        height: 17px;
        color: #8ba1b0;
        pointer-events: none;
        transform: translateY(-50%);
        transition: color .2s ease;
        z-index: 1;
    }

        .input-holder .field-icon svg {
            width: 17px;
            height: 17px;
        }

    .input-holder input[type="password"],
    .input-holder input[type="text"] {
        width: 100%;
        height: 48px;
        padding: 0 42px 0 43px;
        color: var(--ink);
        font: 500 .82rem "Poppins",sans-serif;
        background: #f9fcff;
        border: 1px solid var(--line);
        border-radius: 11px;
        outline: 0;
        transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }

        .input-holder input[type="password"]::placeholder,
        .input-holder input[type="text"]::placeholder {
            color: #a8b8c3;
            opacity: 1;
        }

        .input-holder input[type="password"]:focus,
        .input-holder input[type="text"]:focus {
            background: #fff;
            border-color: #5ca8e7;
            box-shadow: 0 0 0 4px rgba(30,136,229,.10);
        }

        .input-holder input[type="password"]::-ms-reveal {
            display: none;
        }

    .input-holder:focus-within .field-icon svg {
        color: var(--secondary);
    }

    .input-holder .toggle-eye {
        background: none;
        border: none;
        color: #8ba1b0;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 9;
        cursor: pointer;
        font-size: 16px;
        padding: 5px;
        transition: color .2s ease;
    }

        .input-holder .toggle-eye:focus {
            outline: none;
        }

        .input-holder .toggle-eye:hover {
            color: #4e6d82;
        }

/* ── Error msg ── */
.err-msg {
    display: none;
    margin-top: 8px;
    font-size: .72rem;
    font-weight: 500;
    color: #d32f2f;
    text-align: center;
}

/* ── Login button ── */
.login-btn {
    width: 100%;
    height: 49px;
    margin-top: 18px;
    color: #fff;
    font: 600 .82rem "Poppins",sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    background: linear-gradient(100deg,#0a3d6b,#1565c0);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 9px 18px rgba(21,101,192,.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .login-btn:hover {
        box-shadow: 0 14px 25px rgba(21,101,192,.32);
        transform: translateY(-2px);
    }

    .login-btn:active {
        transform: translateY(0);
    }

    .login-btn:disabled {
        opacity: .7;
        cursor: not-allowed;
    }

.assurance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 16px 0 0;
    color: #90a0ab;
    font-size: .62rem;
    text-align: center;
}

    .assurance svg {
        width: 13px;
        height: 13px;
        color: var(--accent);
    }

/* ── OTP boxes ── */
.otp-boxes {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0 24px;
}

.otp-box {
    width: 46px;
    height: 52px;
    background: #f9fcff;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #0a3d6b;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .otp-box:focus {
        border-color: #5ca8e7;
        box-shadow: 0 0 0 3px rgba(30,136,229,.12);
    }

.otp-err {
    color: #d32f2f;
    font-size: .72rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 6px;
    display: none;
}

.verify-btn {
    width: 100%;
    height: 49px;
    color: #fff;
    font: 600 .82rem "Poppins",sans-serif;
    cursor: pointer;
    background: linear-gradient(100deg,#00897b,#26a69a);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 9px 18px rgba(0,137,123,.22);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .verify-btn:hover {
        box-shadow: 0 14px 25px rgba(0,137,123,.3);
        transform: translateY(-2px);
    }

/* ── Footer ── */
.page-footer {
    display: flex;
    justify-content: space-between;
    max-width: 1260px;
    margin: 6px auto 0;
    color: #7f929f;
    font-size: .64rem;
}

    .page-footer strong {
        color: #4f7186;
        font-weight: 600;
    }

/* ── Responsive ── */
@media (max-width: 820px) {
    .page-shell {
        padding: 25px 22px;
    }

        .page-shell::before {
            top: -175px;
            right: -190px;
            width: 520px;
            height: 520px;
            opacity: .93;
        }

    .workspace {
        min-height: auto;
        padding: 48px 0 40px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .intro {
        padding: 8px 4px 10px;
    }

        .intro h1 {
            font-size: clamp(2.2rem,10vw,3.3rem);
        }

        .intro > p {
            color: #5b7486;
        }

    .card-slot {
        max-width: 460px;
        width: 100%;
        justify-self: center;
    }

    .page-footer {
        padding-top: 10px;
    }
}

@media (max-width: 430px) {
    .secure-badge {
        display: none;
    }

    .benefits {
        grid-template-columns: 1fr;
    }

    .page-footer {
        gap: 10px;
        flex-direction: column;
    }

    .login-card {
        padding: 28px 20px;
    }
}
