/* New-gen login page styles. Builds on general.css (shared .btn/.btn-primary
   and the navy/orange palette). Logged-out, centered single-card layout. */

.login-body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-qa-banner {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 14px 20px;
    background: #ffeb00;
    color: #d10000;
    text-transform: uppercase;
}

.login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 32px 30px 28px;
    border-top: 4px solid #0f3460;
}

.login-logo {
    text-align: center;
    margin-bottom: 18px;
}
.login-logo img {
    max-height: 64px;
    max-width: 100%;
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1b;
    margin: 0 0 4px;
}
.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin: 0 0 22px;
}

.login-message {
    border-radius: 6px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.login-message--error {
    background: #fdecea;
    color: #b3261e;
    border-color: #f5c6cb;
}
.login-message--info {
    background: #e8f1fb;
    color: #0f3460;
    border-color: #bcd6f0;
}

.login-field {
    margin-bottom: 16px;
}
.login-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    font-size: 15px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    color: #222;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.login-input:focus {
    outline: none;
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
}

.login-password-wrap {
    position: relative;
}
.login-password-wrap .login-input {
    padding-right: 44px;
}
.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #888;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.login-password-toggle:hover { color: #0f3460; }

.login-actions {
    margin-top: 22px;
}
.login-submit {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 6px;
}
.login-submit[disabled] {
    opacity: 0.65;
    cursor: default;
}
/* Spinner shown inside the submit button while the form is posting (added by
   login.js on submit). Reuses the shared `spin` keyframes from general.css;
   white on the navy primary button, spaced from the label by the .btn gap. */
.login-submit .btn-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.login-links {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}
.login-links a {
    color: #0f3460;
    text-decoration: none;
}
.login-links a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .login-card { padding: 24px 20px; }
    .login-qa-banner { font-size: 28px; }
}

/* =========================================================================
   Branded client variants (?page=rivonia|xcapital|strat_cap) — shared layout.
   Stacks logo (top) -> card (center) -> footer (bottom), all centered, like
   the legacy global login pages. Palette/logos/footer text live in the
   per-brand stylesheet (brand_*.css).
   ========================================================================= */
.login-brand .login-wrap {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 56px;
}
.login-brand .login-card {
    max-width: 475px;
}

.login-brand-logos {
    text-align: center;
    margin-bottom: 22px;
}
.login-brand-logo {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}
/* One logo shows on desktop, the other on mobile (matches the legacy markup). */
.login-brand-logo--mobile { display: none; }
@media (max-width: 767px) {
    .login-brand-logo--desktop { display: none; }
    .login-brand-logo--mobile { display: block; }
}

.login-brand-footer {
    margin-top: 90px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    padding: 0 16px 44px;
}
.login-brand-footer p { margin: 4px 0; }
.login-brand-links { font-weight: 700; }

/* Label-to-the-left form rows (matches the legacy grid layout). */
.login-brand .login-field {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}
.login-brand .login-label {
    flex: 0 0 96px;
    width: 96px;
    text-align: right;
    margin-bottom: 0;
}
.login-brand .login-field > .login-input,
.login-brand .login-field > .login-password-wrap {
    flex: 1 1 auto;
    min-width: 0;
}
/* On mobile, stack the label above the field instead of beside it. */
@media (max-width: 767px) {
    .login-brand .login-field {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .login-brand .login-label {
        flex: none;
        width: auto;
        text-align: left;
        margin-bottom: 4px;
    }
}

/* Legacy brand button + remind-link typography: thin, uppercase, letter-spaced;
   the remind link carries a refresh glyph (legacy glyphicon-refresh). */
.login-brand .login-actions {
    margin-top: 34px;
}
.login-brand .login-submit {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 4px;
}
.login-brand .login-links {
    margin-top: 22px;
}
.login-brand .login-links a {
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.login-brand .login-links a::before {
    content: "\27F3";
    margin-right: 7px;
    font-weight: 400;
    text-transform: none;
}
