/* SOMA - styles de base. Mobile first, doit rester lisible 100% mobile ET pc. */

:root {
    --soma-primary: #b5495b;
    --soma-primary-dark: #8a3446;
    --soma-bg: #fff5f6;
    --soma-surface: #ffffff;
    --soma-text: #2b1c20;
    --soma-text-muted: #7a6469;
    --soma-border: #f0dade;
    --soma-radius: 16px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--soma-bg);
    color: var(--soma-text);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--soma-surface);
    border-radius: var(--soma-radius);
    padding: 32px 24px;
    box-shadow: 0 10px 30px rgba(181, 73, 91, 0.12);
}

.auth-card h1 {
    margin: 0 0 4px;
    font-size: 1.5rem;
    color: var(--soma-primary-dark);
}

.auth-card .subtitle {
    margin: 0 0 24px;
    color: var(--soma-text-muted);
    font-size: 0.9rem;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--soma-border);
    border-radius: 10px;
    font-size: 1rem;
}

.field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--soma-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover { background: var(--soma-primary-dark); }

.auth-switch {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
}

.auth-switch a { color: var(--soma-primary-dark); font-weight: 600; text-decoration: none; }

.alert {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.88rem;
}

.alert-danger { background: #fdecee; color: #a3283b; }
.alert-warning { background: #fff6e0; color: #8a6100; }
.alert-success { background: #e9f8ef; color: #1f7a44; }

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soma-bg);
}

.error-card {
    text-align: center;
}

.error-card h1 {
    font-size: 4rem;
    margin: 0;
    color: var(--soma-primary);
}

.error-card a {
    color: var(--soma-primary-dark);
    font-weight: 600;
}

/* PIN lock */
.pin-dots {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 24px 0;
}

.pin-dots span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--soma-border);
}

.pin-dots span.filled { background: var(--soma-primary); }

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pin-keypad button {
    padding: 18px;
    border: 1px solid var(--soma-border);
    border-radius: 12px;
    background: var(--soma-surface);
    font-size: 1.3rem;
    cursor: pointer;
}
