/* Shared sign-in chrome for the Blazor email step, the local OpenID account pages, and the React login page. Matches the Azure AD B2C unified page: McCrometer blue field, centered white card, logo, full-width button. */
html:has(.st-auth-shell),
body:has(.st-auth-shell) {
    margin: 0;
    background: linear-gradient(160deg, #0067A5 0%, #003B5D 72%);
}

.st-auth-shell {
    position: fixed;
    inset: 0;
    z-index: 1200;
    overflow: auto;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background: linear-gradient(160deg, #0067A5 0%, #003B5D 72%);
    color: #17212E;
    font-family: Inter, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.st-auth-shell * {
    box-sizing: border-box;
}

.st-auth-panel {
    width: 100%;
    max-width: 440px;
    background: #fff;
    padding: 40px 44px 28px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.st-auth-brand {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto 28px;
}

.st-auth-panel h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px;
}

.st-auth-panel .intro {
    color: #605e5c;
    margin: 0 0 20px;
    line-height: 1.4;
}

.st-auth-panel .st-auth-status {
    text-align: center;
}

.st-auth-panel label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 14px 0 6px;
}

.st-auth-panel label.show-password {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font-weight: 400;
    cursor: pointer;
}

.st-auth-panel label.show-password input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #0067A5;
    flex: 0 0 auto;
}

.st-auth-panel input[type="email"],
.st-auth-panel input[type="password"],
.st-auth-panel input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #8a8886;
    border-radius: 2px;
    font: inherit;
    background: #fff;
}

.st-auth-panel input:focus {
    outline: 2px solid #0067A5;
    border-color: #0067A5;
}

.st-auth-panel .actions {
    margin-top: 22px;
}

.st-auth-panel button,
.st-auth-panel .button {
    display: block;
    width: 100%;
    background: #0067A5;
    color: #fff;
    border: 1px solid #0067A5;
    border-radius: 2px;
    padding: 8px 20px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.st-auth-panel button:hover,
.st-auth-panel .button:hover {
    background: #003B5D;
}

.st-auth-panel button:disabled {
    opacity: 0.7;
    cursor: default;
}

.st-auth-panel .links {
    margin-top: 18px;
}

.st-auth-panel .links a {
    color: #0067A5;
    text-decoration: none;
}

.st-auth-panel .links a:hover {
    text-decoration: underline;
}

.st-auth-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    max-width: 440px;
    margin-top: 28px;
    font-size: 0.875rem;
}

.st-auth-legal a {
    color: #fff;
    text-decoration: none;
}

.st-auth-legal a:hover {
    text-decoration: underline;
}

.st-auth-panel .banner {
    border: 1px solid #a4262c;
    background: #fde7e9;
    color: #a4262c;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.st-auth-panel .banner.ok {
    border-color: #0b6a0b;
    background: #dff6dd;
    color: #0b6a0b;
}

.st-auth-panel .field-error,
.st-auth-panel .validation-message {
    color: #a4262c;
    font-size: 0.85rem;
    margin-top: 4px;
}

.st-auth-panel ul.errors {
    margin: 8px 0 0;
    padding-left: 18px;
}
