/* ====================================================================
   Correcto — feuille de style de base
   Thème piloté par variables CSS (re-thématisable facilement).
   ==================================================================== */

:root {
    --c-primary:      #2563eb;
    --c-primary-dark: #1d4ed8;
    --c-text:         #1f2937;
    --c-muted:        #6b7280;
    --c-bg:           #f4f5f7;
    --c-surface:      #ffffff;
    --c-border:       #e5e7eb;
    --c-error:        #dc2626;
    --c-error-bg:     #fef2f2;
    --c-success:      #16a34a;
    --c-success-bg:   #f0fdf4;
    --radius:         10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- En-tête --- */
.site-header {
    padding: 18px 24px;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
}
.site-header .wordmark {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    color: var(--c-primary);
}

/* --- Mise en page authentification --- */
.auth-wrap {
    min-height: calc(100vh - 61px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 32px;
}
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card .subtitle {
    color: var(--c-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* --- Formulaires --- */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    color: var(--c-text);
}
.field input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field .hint { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; } }

.checkbox {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--c-muted);
    margin-bottom: 18px;
}
.checkbox input { margin-top: 3px; flex-shrink: 0; }

/* --- Boutons --- */
.btn {
    display: block;
    width: 100%;
    padding: 11px;
    background: var(--c-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}
.btn:hover { background: var(--c-primary-dark); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Messages --- */
.alert {
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 18px;
}
.alert-error   { background: var(--c-error-bg);   color: var(--c-error);   border: 1px solid #fecaca; }
.alert-success { background: var(--c-success-bg); color: var(--c-success); border: 1px solid #bbf7d0; }

.hidden { display: none; }

.auth-foot {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: var(--c-muted);
}
.center-status { text-align: center; padding: 12px 0; }
