/* ── Auth layout ─────────────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 1.5rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

/* ── Brand ───────────────────────────────────────────────────────── */
.auth-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #1e293b;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* ── Alerts ──────────────────────────────────────────────────────── */
.auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.auth-alert--success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.auth-alert--error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* ── Form ────────────────────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.auth-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #1e293b;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-forgot {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
}

.auth-forgot:hover {
    text-decoration: underline;
}

/* ── Remember me ─────────────────────────────────────────────────── */
.auth-field--inline {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.auth-checkbox {
    width: 1rem;
    height: 1rem;
    accent-color: #1e293b;
    cursor: pointer;
}

.auth-checkbox-label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

/* ── Submit button ───────────────────────────────────────────────── */
.auth-submit {
    width: 100%;
    padding: 0.75rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    margin-top: 0.25rem;
}

.auth-submit:hover {
    background: #334155;
}

.auth-submit:active {
    background: #0f172a;
}

/* ── Body reset for auth pages ───────────────────────────────────── */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}