.login-page {
    --blue: #174d88;
    --blue-dark: #0c274b;
    --gold: #f5c84b;
    --red: #c94135;
    --navy: #112f55;
    min-height: 100vh;
    padding: clamp(1rem, 2.5vw, 2rem);
    color: #344054;
    background: radial-gradient(circle at 10% 10%, rgba(245, 200, 75, .16), transparent 30%),
                radial-gradient(circle at 90% 90%, rgba(23, 77, 136, .14), transparent 32%), #edf3f8;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(440px, 1.2fr) minmax(420px, .8fr);
    width: min(1380px, 100%);
    min-height: calc(100vh - clamp(2rem, 5vw, 4rem));
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 1.35rem;
    box-shadow: 0 24px 70px rgba(18, 49, 86, .16);
}

.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; }
.showcase-overlay {
    z-index: -1;
    background: linear-gradient(180deg, rgba(8,31,62,.82), rgba(15,65,112,.54) 45%, rgba(8,31,62,.94));
}

.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,.72);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

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

.brand-mark {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 3rem; height: 3rem; color: #fff;
    background: linear-gradient(135deg, #1d65a8, #123f78);
    border: 1px solid rgba(255,255,255,.3); border-radius: .8rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.18); font-size: 1.25rem;
}

.showcase-message { max-width: 650px; }
.secure-label {
    display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .75rem;
    color: #fff2c5; background: rgba(255, 255, 255, 0.219); border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.showcase-message h1 {
    color: #fff;
    margin: 1.15rem 0 1rem; font-size: 4.4rem;
    font-weight: 800; line-height: .98; letter-spacing: 0;
}

.showcase-message p { max-width: 580px; margin: 0; color: rgba(255,255,255,.82); line-height: 1.7; }
.showcase-note { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.72); font-size: .78rem; }
.login-panel {
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem); background: #fff;
}

.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: #eef5ff; border-radius: .8rem; 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: 50px; padding: .75rem 1rem .75rem 2.8rem; color: #253342;
    background: #fbfcfc; border: 1px solid #d0d5dd; border-radius: .7rem; font-size: .9rem;
}

.input-wrap .form-control:focus { background: #fff; border-color: #2d73b9; box-shadow: 0 0 0 4px rgba(23, 77, 136, .12); }
.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; }
.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: .45rem; 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: 50px; margin-top: 1.6rem; padding: .75rem 1rem;
    color: #fff; background: linear-gradient(135deg,#1d65a8,#123f78); border: 0; border-radius: .7rem;
    box-shadow: 0 9px 20px rgba(21, 75, 136, .22); font-size: .9rem; font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.sign-in-button:not(:disabled):hover { box-shadow: 0 12px 26px rgba(21, 75, 136, .3); transform: translateY(-2px); }
.sign-in-button:disabled { cursor: not-allowed; opacity: .58; }
.login-alert {
    display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1.25rem; padding: .8rem .9rem;
    color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: .65rem;
    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.25rem; background:#f7fbff; border:1px solid #d4e4f5; border-radius:.75rem; text-align:center; }.otp-symbol{display:grid;place-items:center;width:3rem;height:3rem;margin-bottom:.7rem;color:#174d88;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:.7rem;color:#102f4c;background:#fff;border:1px solid #98b9d8;border-radius:.6rem;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(23,77,136,.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; }
}
