/**
 * Auth pages stylesheet (Phase 3, v2).
 * Colors/radii per docs/MASTER_MIGRATION_PLAN.md §3 Part C spec:
 * brand blue #1A3FC4, 16-20px radius, status-pill style feedback.
 * Mobile-first: single centered card, no desktop-only chrome.
 */

:root {
    --brand: #1A3FC4;
    --brand-dark: #142f99;
    --brand-navy: #101f5c;   /* deep navy — matches the Finmighty app-store wordmark */
    --text: #1a1a2e;
    --muted: #6b7280;
    --border: #e2e5ee;
    --bg: #eaf1ff;           /* soft hero blue, matches the consumer app's top gradient */
    --bg-end: #ffffff;
    --error: #d92d20;
    --error-bg: #fef3f2;
    --success: #12894f;
    --success-bg: #ecfdf3;
    --radius: 18px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-end) 55%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-wrap { width: 100%; max-width: 420px; }

.auth-logo {
    text-align: center;
    font-weight: 700;
    font-size: 22px;
    color: var(--brand-navy);
    margin-bottom: 20px;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: 0 2px 16px rgba(26, 63, 196, 0.08);
}

.auth-card h1 {
    font-size: 20px;
    margin: 0 0 6px;
}

.auth-card p.subtitle {
    color: var(--muted);
    margin: 0 0 20px;
    font-size: 14px;
}

.field { margin-bottom: 16px; }

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    background: #fbfcfe;
}

.field input:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
}

.field-error { color: var(--error); font-size: 12px; margin-top: 4px; }

.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}

.btn:hover { background: var(--brand-dark); }
.btn:active { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.btn-link {
    background: none;
    color: var(--brand);
    text-decoration: underline;
    width: auto;
    padding: 0;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
}

.auth-footer a { color: var(--brand); text-decoration: none; font-weight: 600; }

.pill {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.pill-error { background: var(--error-bg); color: var(--error); }
.pill-success { background: var(--success-bg); color: var(--success); }

.otp-mobile { font-weight: 700; color: var(--text); }

.resend-row {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 14px;
}
