.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(26, 79, 140, 0.08), transparent 42%),
        linear-gradient(180deg, #edf1f6 0%, #e4eaf2 100%);
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--space-6);
}

.auth-card {
    width: min(440px, 100%);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--elevation-3);
    padding: var(--space-8);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.auth-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.auth-brand strong {
    display: block;
    font-size: var(--font-size-base);
    color: var(--color-text);
}

.auth-brand small {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-subtle);
}

.auth-header h1 {
    margin: 0 0 var(--space-2);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

.auth-header p {
    margin: 0 0 var(--space-5);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.auth-alert {
    margin-bottom: var(--space-4);
}

.auth-alert .alert {
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.password-field {
    position: relative;
}

.password-field .form-input {
    padding-right: 4.5rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: var(--space-2);
    transform: translateY(-50%);
    height: 28px;
    padding: 0 var(--space-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.form-input.is-invalid {
    border-color: var(--color-status-overdue-border);
    box-shadow: 0 0 0 3px rgba(143, 59, 44, 0.08);
}

.form-help-error {
    color: var(--color-status-overdue-text);
    font-weight: var(--font-weight-medium);
}

.auth-submit {
    width: 100%;
    height: 40px;
    margin-top: var(--space-2);
    text-decoration: none;
    display: inline-flex;
}

.auth-footnote {
    margin: var(--space-5) 0 0;
    font-size: var(--font-size-xs);
    color: var(--color-text-subtle);
    line-height: var(--line-height-relaxed);
}

.auth-dev-helper {
    margin-top: var(--space-5);
    padding: var(--space-3) var(--space-4);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-muted);
    font-size: var(--font-size-xs);
    color: var(--color-text-subtle);
    line-height: var(--line-height-relaxed);
}

.auth-dev-helper p {
    margin: 0 0 var(--space-1);
}

.auth-dev-helper p:last-child {
    margin-bottom: 0;
}

.auth-dev-helper-title {
    margin: 0 0 var(--space-2);
    font-size: var(--font-size-2xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    color: var(--color-text-muted);
}

.auth-dev-helper span {
    color: var(--color-text-muted);
    font-weight: var(--font-weight-medium);
}

.auth-local-status {
    margin: var(--space-3) 0 0;
    font-size: var(--font-size-2xs);
    color: var(--color-text-subtle);
    text-align: center;
    letter-spacing: 0.02em;
}

.auth-card--error .auth-header p {
    margin-bottom: var(--space-4);
}
