/* Shared styling for the forgot-password flow (ForgotPassword, VerifyResetOtp, ResetPassword) -
   mirrors Login.razor's look. Kept as a separate stylesheet instead of duplicating Login.razor's
   inline <style> block three times. */
.login-page {
    --navy: #102a43;
    --blue: #1769aa;
    --orange: #e08a22;
    --text: #172b3a;

    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(7, 20, 30, .78) 0%, rgba(7, 20, 30, .55) 43%, rgba(7, 20, 30, .30) 100%),
        url("/images/login-bg.jpg") center / cover no-repeat fixed;
    display: flex;
    flex-direction: column;
}

.login-topbar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    background: rgba(5, 18, 28, .72);
    border-bottom: 1px solid rgba(255,255,255,.15);
    backdrop-filter: blur(5px);
    color: white;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-brand img {
    height: 44px;
    width: auto;
}

.login-brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .35px;
    line-height: 1.2;
}

.login-brand-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.7px;
    opacity: .72;
    margin-top: 3px;
}

.login-portal-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: .78;
}

.login-main {
    flex: 1;
    width: min(1240px, 90vw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    align-items: center;
    gap: 8vw;
    padding: 65px 0;
}

.login-intro {
    color: white;
    max-width: 700px;
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    margin-bottom: 18px;
}

.login-eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--orange);
    border-radius: 4px;
}

.login-intro h1 {
    margin: 0;
    font-size: clamp(38px, 4.4vw, 62px);
    line-height: .98;
    letter-spacing: -2.5px;
    font-weight: 800;
}

.login-lead {
    margin: 24px 0 0;
    max-width: 620px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.6;
    color: rgba(255,255,255,.88);
}

.login-card {
    width: min(390px, 100%);
    justify-self: end;
    background: rgba(255,255,255,.96);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0,0,0,.38);
    overflow: hidden;
}

.login-card-top {
    padding: 28px 32px 22px;
    background: linear-gradient(135deg, #ffffff, #f3f7fa);
    border-bottom: 1px solid #e7edf2;
}

.login-card-title {
    margin: 0;
    font-size: 25px;
    color: var(--navy);
    font-weight: 750;
}

.login-card-subtitle {
    margin: 7px 0 0;
    font-size: 13px;
    color: #6b7c8c;
}

.login-card-body {
    padding: 28px 32px 32px;
}

.login-card-body label {
    display: block;
    margin: 0 0 7px;
    font-size: 12px;
    font-weight: 700;
    color: #435466;
    text-transform: uppercase;
    letter-spacing: .7px;
}

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

.login-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d7e0e7;
    border-radius: 9px;
    background: #fff;
    transition: .2s ease;
    overflow: hidden;
}

.login-input-wrap:focus-within {
    border-color: #4b8fbd;
    box-shadow: 0 0 0 3px rgba(23,105,170,.10);
}

.login-input-icon {
    width: 42px;
    text-align: center;
    color: #8091a0;
    font-size: 16px;
}

.login-card-body input[type="text"],
.login-card-body input[type="email"],
.login-card-body input[type="password"] {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 12px 12px 12px 0;
    font-size: 14px;
    color: #1c2f3f;
    background: transparent;
    letter-spacing: normal;
}

.login-btn {
    width: 100%;
    border: 0;
    border-radius: 9px;
    padding: 13px 16px;
    background: linear-gradient(135deg, #1769aa, #124e80);
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .25px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(23,105,170,.22);
    transition: transform .15s ease, box-shadow .15s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(23,105,170,.30);
}

.login-btn:disabled {
    opacity: .75;
    cursor: default;
    transform: none;
}

/* Busy state of a submit button (spinner before the label) and the status line under it. */
.login-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: login-spin .7s linear infinite;
}

.login-spinner[hidden],
.login-sending[hidden] {
    display: none;
}

.login-sending {
    margin-top: 12px;
    font-size: 12.5px;
    text-align: center;
    color: #124e80;
}

@keyframes login-spin {
    to { transform: rotate(360deg); }
}

.login-btn-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 12.5px;
    color: #435466;
    text-decoration: none;
}

.login-btn-link:hover {
    color: var(--blue);
    text-decoration: underline;
}

.login-error {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 9px;
    background: #fdecea;
    border: 1px solid #f3b9b3;
    color: #9a2f27;
    font-size: 12.5px;
    line-height: 1.4;
}

.login-success {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 9px;
    background: #e9f7ef;
    border: 1px solid #a9dfc0;
    color: #1e6b3e;
    font-size: 12.5px;
    line-height: 1.4;
}

.login-hint {
    margin: 0 0 18px;
    font-size: 12.5px;
    color: #6b7c8c;
    line-height: 1.5;
}

.login-footer {
    padding: 16px 5vw;
    display: flex;
    justify-content: space-between;
    color: rgba(255,255,255,.70);
    font-size: 10px;
    letter-spacing: .4px;
    background: rgba(5,18,28,.52);
    border-top: 1px solid rgba(255,255,255,.10);
}

@media (max-width: 850px) {
    .login-topbar { height: 66px; }
    .login-portal-label { display: none; }
    .login-main {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 50px 0;
    }
    .login-intro {
        max-width: 650px;
    }
    .login-card {
        justify-self: start;
    }
    .login-page {
        background-position: 62% center;
    }
}

@media (max-width: 520px) {
    .login-main { width: 86vw; padding: 38px 0; }
    .login-intro h1 { font-size: 38px; }
    .login-lead { font-size: 16px; }
    .login-card { border-radius: 14px; }
    .login-card-top, .login-card-body { padding-left: 24px; padding-right: 24px; }
    .login-brand-name { font-size: 13px; }
    .login-brand-sub { display: none; }
    .login-footer { font-size: 9px; }
}
