/* Legacy sign-in (868meknp3): styled to match the public marketing site on the Blazor host
   (navy page, white card, Open Sans, brand blue). Self-contained; no framework. */

:root {
    --si-navy-900: #0B1020;
    --si-navy-700: #252D47;
    --si-brand-500: #0257B2;
    --si-brand-700: #023C7E;
    --si-brand-300: #5E9BDD;
    --si-gray-600: #4E5666;
    --si-gray-300: #C4CAD3;
    --si-gray-200: #DFE3E8;
    --si-danger: #B42318;
    --si-danger-bg: #FEF3F2;
    --si-success-bg: #ECFDF3;
    --si-success: #067647;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--si-navy-900);
    background-image: radial-gradient(110% 80% at 80% 0%, rgba(46, 110, 190, .32) 0%, rgba(11, 16, 32, 0) 60%);
    font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #1F232E;
    -webkit-font-smoothing: antialiased;
}

[hidden] {
    display: none !important;
}

.si-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 8vh, 96px) 16px;
}

.si-card {
    width: 100%;
    max-width: 440px;
    padding: 34px 36px 32px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 28px 64px rgba(0, 0, 0, .45);
}

.si-logo {
    display: inline-block;
    margin-bottom: 26px;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--si-navy-900);
}

.si-logo img {
    display: block;
    height: 26px;
    width: auto;
}

.si-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--si-navy-700);
}

.si-title:focus {
    outline: none;
}

.si-lede {
    margin: 8px 0 22px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--si-gray-600);
}

.si-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--si-navy-700);
}

.si-gap {
    margin-top: 16px;
}

.si-gap-sm {
    margin-top: 12px;
}

.si-input {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--si-gray-300);
    border-radius: 6px;
    background: #FFFFFF;
    font: inherit;
    font-size: 15px;
    color: #1F232E;
}

.si-input:focus {
    outline: 2px solid var(--si-brand-300);
    outline-offset: 1px;
    border-color: var(--si-brand-500);
}

.si-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 22px;
}

.si-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--si-gray-600);
    cursor: pointer;
}

.si-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--si-brand-500);
}

.si-code-row {
    display: flex;
    gap: 8px;
}

.si-code-row .si-input {
    flex: 1 1 auto;
}

#si-two-factor {
    margin-bottom: 22px;
}

.si-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.si-btn:disabled {
    opacity: .6;
    cursor: default;
}

.si-btn:focus-visible {
    outline: 2px solid var(--si-brand-300);
    outline-offset: 2px;
}

.si-btn-primary {
    background: var(--si-brand-500);
    color: #FFFFFF;
}

.si-btn-primary:hover:not(:disabled) {
    background: var(--si-brand-700);
}

.si-btn-ghost {
    flex: none;
    background: #FFFFFF;
    border-color: var(--si-gray-300);
    color: var(--si-navy-700);
}

.si-btn-ghost:hover:not(:disabled) {
    border-color: var(--si-brand-500);
    color: var(--si-brand-500);
}

.si-btn-block {
    width: 100%;
}

.si-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--si-brand-500);
    text-decoration: none;
}

.si-link:hover {
    color: var(--si-brand-700);
    text-decoration: underline;
}

.si-foot {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--si-gray-200);
    font-size: 14px;
    color: var(--si-gray-600);
    text-align: center;
}

.si-status,
.si-note {
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.si-status {
    background: var(--si-danger-bg);
    color: var(--si-danger);
}

.si-note {
    background: var(--si-success-bg);
    color: var(--si-success);
}

@media (max-width: 480px) {
    .si-card {
        padding: 28px 22px 26px;
    }
}
