/* ================================================
   ProActa Web — Auth Page Styles
   Matches the app's warm design language
   ================================================ */

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bg: #f5f4f2;
    --surface: #ffffff;
    --border: #e2e0dc;
    --border-light: #eeecea;
    --text: #2d2d2d;
    --text-muted: #6b6966;
    --text-light: #736e68;
    --primary: #e8632b;
    --primary-hover: #d4541d;
    --primary-light: rgba(232, 99, 43, 0.08);
    --gradient-brand: linear-gradient(135deg, #e74c3c, #e8632b, #f39c12);
    --gradient-brand-hover: linear-gradient(135deg, #d4541d, #c0392b);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --transition: .18s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Keyboard Focus Indicators (WCAG 2.4.7) ── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    text-decoration: none;
}
.auth-brand img {
    width: 36px; height: 36px;
    border-radius: 8px;
    filter: drop-shadow(0 1px 3px rgba(232,99,43,0.25));
}
.auth-brand-name {
    font-size: 22px; font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
}

.auth-card h2 {
    font-size: 20px; font-weight: 700;
    margin-bottom: 6px;
}

.auth-card .subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,99,43,0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-brand);
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(232,99,43,0.2);
    transition: all var(--transition);
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(232,99,43,0.3);
}

.auth-btn:active {
    transform: translateY(0) scale(0.99);
}

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

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error {
    background: rgba(226, 68, 92, 0.08);
    border: 1px solid rgba(226, 68, 92, 0.2);
    color: #e2445c;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    display: none;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 14px;
    background: var(--primary-light);
    border: 1px solid rgba(232,99,43,0.15);
    color: var(--primary);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 20px;
}
