/* Shared by the account pages - Login, LoginTwoFactor, ForgotPassword, ResetPassword (the
   centered card) and TwoFactorSettings (plain-HTML form fields, ID Austria button). A global
   stylesheet rather than per-page .razor.css: CSS isolation can't share rules across pages, and
   the copies had grown to ~300 duplicated lines. Global also means no ::deep is needed for
   classes passed into MudBlazor components via Class (login-card, id-austria-button). Only these
   pages use these class names. */

/* Centered card */

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    /* The brand gradient (112deg, three stops) may appear behind the login card as a large, soft
       surface - it carries no text there (manual Kap. 10.3). Kept faint over the page ground. */
    background:
        linear-gradient(112deg, rgb(11 107 203 / 0.14) 0%, rgb(91 63 214 / 0.14) 50%, rgb(8 129 153 / 0.14) 100%),
        var(--mud-palette-background);
}

/* Login card: 12 px radius and a 1 px edge (Kap. 6.3/10.2); the brand gradient as a thin bar on
   top, like the Markenbalken of the letterhead (Kap. 11.2). */
.login-page .login-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    overflow: hidden;
}

.login-page .login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(112deg, #0B6BCB 0%, #5B3FD6 50%, #088199 100%);
}

/* Plain-HTML form fields - these forms must be real top-level POSTs (the Set-Cookie of a login
   can't travel over the SignalR circuit), so they can't use MudForm/MudTextField. */

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Spacing between stacked fields inside a card; TwoFactorSettings spaces its single field itself. */
.login-page .login-field {
    margin-top: 1.15rem;
}

.login-field label {
    font-size: 0.84375rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
}

.login-field input {
    font: inherit;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--mud-palette-lines-inputs);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}

/* The manual's focus ring (app.css --k-fokus); :focus-visible is always true for a text input. */
.login-field input:focus-visible {
    outline: none;
    box-shadow: var(--k-fokus);
}

/* ID Austria button (login and linking) */

.id-austria-button {
    padding: 0.9rem 1.5rem;
}

.id-austria-button .mud-button-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-weight: 500;
    font-size: 1.05rem;
}

.id-austria-logo {
    height: 34px;
    width: auto;
}

/* Forgot/reset password: status badge and hint/requirement lists */

.status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.status-icon-success {
    background: color-mix(in srgb, var(--mud-palette-success) 12%, transparent);
}

.status-icon-warning {
    background: color-mix(in srgb, var(--mud-palette-warning) 12%, transparent);
}

.hint-list, .requirement-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hint-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.9375rem;
    color: var(--mud-palette-text-secondary);
}

.hint-list li::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--mud-palette-primary);
}
