/* Identity (login / forgot-password / etc.) pages — same design language as the
   Vue SPA: purple gradient backdrop, centred white card, brand-green actions, Muli. */
:root {
    --brand-green: #09B585;
    --brand-green-dark: #058560;
    --shell-from: #2e276c;
    --shell-to: #2f0f56;
    --text-dark: #1e2022;
    --text-muted: #77838f;
}

html, body {
    height: 100%;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: 'Muli', 'Roboto', -apple-system, "Segoe UI", sans-serif;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--shell-from), var(--shell-to));
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    border-radius: 12px;
    padding: 2.25rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.auth-brand {
    text-align: center;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
    color: var(--shell-from);
    margin-bottom: 1.5rem;
}

.auth-card h1,
.auth-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Brand-green primary buttons (Identity uses .btn-primary). */
.btn-primary,
.btn-primary:disabled {
    background-color: var(--brand-green);
    border-color: var(--brand-green);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-green-dark) !important;
    border-color: var(--brand-green-dark) !important;
}

a {
    color: var(--brand-green-dark);
}

a:hover {
    color: var(--brand-green);
}

.form-floating > label {
    color: var(--text-muted);
}

.form-control:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 0.2rem rgba(9, 181, 133, 0.25);
}

hr {
    opacity: 0.1;
}

/* Admin portal is local-account only: hide the "Register as a new user" link
   (self-registration is also blocked server-side) and the "Use another service
   to log in" external-providers column, then let the local form fill the card. */
.auth-card a[href*="/Account/Register"] {
    display: none;
}

.auth-card p:has(> a[href*="/Account/Register"]) {
    display: none;
}

/* Hide the external-login ("Use another service to log in") section. Keyed off the
   stable form id / action rather than Bootstrap grid classes (which vary by template). */
.auth-card section:has(#external-account),
.auth-card section:has(form[action*="/Account/ExternalLogin"]),
.auth-card .row > div:has(#external-account),
.auth-card .row > div:has(form[action*="/Account/ExternalLogin"]) {
    display: none;
}

/* Collapse the two-column login grid so the local-account form fills the card. */
.auth-card .row {
    display: block;
}

.auth-card .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}
