/* Auth pages — login & password reset (centered card) */

.auth-wrap {
    min-height: calc(100vh - 170px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.12);
    padding: 2.25rem 2rem;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.75rem;
}
.auth-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), #2c5282);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    box-shadow: 0 6px 16px rgba(30, 58, 95, 0.3);
}
.auth-logo .bar { width: 6px; height: 26px; background: var(--color-accent); border-radius: 2px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 700; color: var(--color-text); margin-bottom: 0.3rem; }
.auth-sub { color: var(--color-text-muted); font-size: 0.92rem; }

.auth-form .form-group { margin-bottom: 1.1rem; }
.auth-form label { display: block; font-weight: 500; font-size: 0.9rem; color: var(--color-text); margin-bottom: 0.4rem; }
.auth-form input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-form input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12); }
.auth-form .button-primary { width: 100%; margin-top: 0.4rem; padding: 0.8rem; font-size: 1rem; }

.auth-foot { text-align: center; margin-top: 1.4rem; font-size: 0.9rem; color: var(--color-text-muted); }
.auth-foot a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.auth-error {
    background: #fbeaea; border-left: 4px solid var(--color-danger); color: #7f1d1d;
    padding: 0.7rem 0.9rem; border-radius: 6px; margin-bottom: 1.1rem; font-size: 0.9rem;
}
.auth-success {
    background: #eaf6ee; border-left: 4px solid var(--color-success); color: #14532d;
    padding: 0.9rem 1rem; border-radius: 6px; margin-bottom: 1.1rem; font-size: 0.92rem;
}
.auth-note { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; text-align: center; line-height: 1.6; }
.field-error { color: var(--color-danger); font-size: 0.82rem; margin-top: 0.3rem; }
.pw-hint { color: var(--color-text-muted); font-size: 0.8rem; margin-top: 0.4rem; line-height: 1.5; }
.pw-hint ul { margin: 0.3rem 0 0 1.1rem; }

@media (max-width: 480px) {
    .auth-card { padding: 1.75rem 1.4rem; border-radius: 12px; }
}
