/* Static pages: sign-in, account management, errors (SimpleLayout). Interactive pages are styled by MudBlazor. */

.simple-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    background: #f3f5f8;
    font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #1f2933;
}

.simple-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    padding: 32px;
}

.simple-brand {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4e89;
    margin-bottom: 16px;
}

.simple-card h1 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 16px;
}

.simple-card p {
    line-height: 1.5;
    margin: 0 0 12px;
}

.simple-card a {
    color: #1d4e89;
}

.simple-card .simple-footer {
    margin: 24px 0 0;
    font-size: 0.9rem;
}

.account-field {
    display: block;
    margin-bottom: 16px;
}

.account-field span {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.account-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid #b8c2cc;
    border-radius: 4px;
}

.account-field input:focus {
    outline: 2px solid #1d4e89;
    outline-offset: -1px;
    border-color: #1d4e89;
}

.account-button {
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    color: #fff !important;
    background: #1d4e89;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.account-button:hover {
    background: #163d6c;
}

.account-hint {
    margin-top: 16px !important;
    font-size: 0.9rem;
    color: #52606d;
}

.account-errors {
    color: #b42318;
    padding-left: 20px;
    margin: 0 0 12px;
}

.account-alert {
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.account-alert p:last-child {
    margin-bottom: 0;
}

.account-alert-error {
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
}

.account-alert-success {
    background: #ecfdf3;
    border: 1px solid #abefc6;
    color: #067647;
}

.account-alert-warning {
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: #93370d;
}

.account-steps {
    padding-left: 20px;
    line-height: 1.5;
}

.account-steps li {
    margin-bottom: 12px;
}

.authenticator-qr svg {
    display: block;
    width: 200px;
    height: 200px;
    margin: 12px 0;
}

.account-steps kbd,
.recovery-code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    background: #f3f5f8;
    border: 1px solid #dde3ea;
    border-radius: 4px;
    padding: 2px 6px;
}

.recovery-codes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 24px;
}

.recovery-code {
    text-align: center;
    padding: 6px;
}

.invite-link {
    word-break: break-all;
    font-size: 0.85rem;
}

/* FocusOnNavigate moves focus to the page heading for screen readers; the outline is noise for everyone else. */
h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
