.login-page {
    --blue: #24598c;
    --blue-dark: #163a5f;
    --blue-soft: #eef4ff;
    --gold: #c89b3c;
    --green: #2e6f40;
    --navy: #163a5f;
    min-height: 100vh;
    padding: clamp(1rem, 2.5vw, 2rem);
    color: #344054;
    background:
        radial-gradient(circle at 8% 12%, rgba(221, 177, 75, .16), transparent 26%),
        radial-gradient(circle at 92% 16%, rgba(15, 77, 120, .12), transparent 30%),
        radial-gradient(circle at 82% 88%, rgba(42, 124, 113, .12), transparent 22%),
        linear-gradient(180deg, #f5f7fa, #f8fafc);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(480px, 1.22fr) minmax(420px, .78fr);
    width: min(1380px, 100%);
    min-height: calc(100vh - clamp(2rem, 5vw, 4rem));
    margin: 0 auto;
    overflow: hidden;
    background: rgba(255, 255, 255, .9);
    border: 0px solid rgba(16, 49, 79, .08);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(22, 58, 95, .1);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.login-showcase {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
}

.login-showcase > img,
.showcase-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.login-showcase > img {
    z-index: -2;
    object-fit: cover;
    object-position: center;
    filter: saturate(.88) contrast(.96);
}

.showcase-overlay {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(131, 151, 172, 0.84), rgba(112, 163, 214, 0.164) 46%, rgba(189, 189, 189, 0.9)),
        radial-gradient(circle at 18% 18%, rgba(200, 155, 60, .16), transparent 95%);
}

.showcase-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 650px;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.brand,
.mobile-brand {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: .35rem;
}

.brand small,
.mobile-brand small {
    color: rgba(255,255,255,.76);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.mobile-brand small {
    color: #5c6f86;
}

.showcase-message {
    max-width: 650px;
}

.secure-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem .78rem;
    color: #fff4cc;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.showcase-message h1 {
    color: #fff;
    margin: 1.15rem 0 .95rem;
    font-size: clamp(3rem, 5vw, 4.35rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.03em;
}

.showcase-message p {
    max-width: 580px;
    margin: 0;
    color: rgba(255,255,255,.84);
    line-height: 1.72;
    font-size: 1rem;
}

.showcase-trust {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    margin-top: 1.15rem;
}

.showcase-trust span {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .45rem .7rem;
    color: #eef8ff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.showcase-note {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: rgba(255,255,255,.74);
    font-size: .78rem;
}

.login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 250, 252, .94));
}

.mobile-brand {
    display: none;
    margin-bottom: 3rem;
    color: var(--navy);
}

.login-card {
    width: min(430px, 100%);
    margin: auto;
}

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

.welcome-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.15rem;
    color: var(--blue);
    background:
        linear-gradient(135deg, rgba(15, 77, 120, .1), rgba(42, 124, 113, .08));
    border: 1px solid rgba(15, 77, 120, .1);
    border-radius: 10px;
    font-size: 1.3rem;
}

.login-heading h2 {
    margin: 0 0 .45rem;
    color: var(--navy);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.login-heading p {
    margin: 0;
    color: #667085;
    font-size: .92rem;
}

.form-field {
    margin-bottom: 1.2rem;
}

.form-field label {
    display: block;
    margin-bottom: .45rem;
    color: #344054;
    font-size: .82rem;
    font-weight: 700;
}

.input-wrap {
    position: relative;
}

.input-wrap .form-control {
    min-height: 52px;
    padding: .8rem 1rem .8rem 2.9rem;
    color: #253342;
    background: #fbfcfd;
    border: 1px solid #d0dbe5;
    border-radius: 10px;
    font-size: .92rem;
}

.input-wrap .form-control:focus {
    background: #fff;
    border-color: #2d73b9;
    box-shadow: 0 0 0 4px rgba(22, 58, 95, .08);
}

.input-wrap .form-control::placeholder {
    color: #98a2b3;
    text-align: left;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    z-index: 2;
    color: #667085;
    transform: translateY(-50%);
}

.password-input {
    padding-right: 3rem !important;
    text-transform: none !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: .65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    color: #667085;
    background: transparent;
    border: 0;
    border-radius: 10px;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: var(--blue);
    background: #eef5ff;
}

.sign-in-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    width: 100%;
    min-height: 52px;
    margin-top: 1.6rem;
    padding: .8rem 1rem;
    color: #fff;
    background: var(--blue);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(22, 58, 95, .14);
    font-size: .92rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.sign-in-button:not(:disabled):hover {
    box-shadow: 0 10px 24px rgba(22, 58, 95, .18);
    transform: translateY(-1px);
}

.sign-in-button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: 1.25rem;
    padding: .85rem .95rem;
    color: #b42318;
    background: #fef3f2;
    border: 1px solid #f2d2cb;
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.45;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: 1.25rem;
    color: #98a2b3;
    font-size: .72rem;
}

.otp-panel {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1.35rem;
    background:
        linear-gradient(145deg, #f7fbff, #f3f8fb);
    border: 1px solid #d4e4f5;
    border-radius: 12px;
    text-align: center;
}

.otp-symbol {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: .7rem;
    color: var(--blue);
    background: #e8f1fb;
    border-radius: 50%;
    font-size: 1.25rem;
}

.otp-panel label {
    margin-bottom: .55rem;
    color: #344054;
    font-size: .8rem;
    font-weight: 700;
}

.otp-input {
    width: 100%;
    max-width: 230px;
    padding: .75rem;
    color: #102f4c;
    background: #fff;
    border: 1px solid #98b9d8;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .45em;
    text-align: center;
}

.otp-input:focus {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(15, 77, 120, .12);
}

.otp-panel small {
    margin-top: .6rem;
    color: #98a2b3;
    font-size: .65rem;
}

.back-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 100%;
    margin-top: .75rem;
    padding: .4rem;
    color: #667085;
    background: transparent;
    border: 0;
    font-size: .7rem;
    font-weight: 700;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: min(430px,100%);
    margin: 3rem auto 0;
    padding-top: 1rem;
    color: #98a2b3;
    border-top: 1px solid #eaecf0;
    font-size: .68rem;
}

@media (max-width: 950px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .login-showcase {
        display: none;
    }

    .login-panel {
        min-height: calc(100vh - clamp(2rem,5vw,4rem));
    }

    .mobile-brand {
        display: flex;
    }
}

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

    .login-shell {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 1.5rem;
    }

    .mobile-brand {
        margin-bottom: 2rem;
    }

    .login-footer {
        flex-direction: column;
        margin-top: 2rem;
    }
}
