/* ============================================================
   Auth.css — Pages d'authentification (login, register, etc.)
   ============================================================ */

.auth-screen {
    display: flex;
    min-height: 100vh;
}

/* ── Panneau gauche décoratif ──────────────────────────────── */
.auth-left {
    flex: 0 0 420px;
    background: linear-gradient(145deg, var(--navy) 0%, var(--blue-dark) 60%, var(--blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -80px; right: -80px;
}
.auth-left::after {
    content: '';
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    bottom: -50px; left: -50px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}
.auth-brand-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--blue-light), var(--gold));
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}
.auth-brand-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
}
.auth-brand-name span { color: var(--gold); }

.auth-tagline {
    text-align: center;
    z-index: 1;
}
.auth-tagline h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
}
.auth-tagline p {
    font-size: 14px;
    opacity: .7;
    line-height: 1.6;
}

.auth-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    opacity: .8;
}
.auth-feature i {
    width: 32px; height: 32px;
    background: rgba(255,255,255,.12);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Panneau droit (formulaire) ────────────────────────────── */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 40px 24px;
    overflow-y: auto;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.auth-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.auth-card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

/* ── Champs de formulaire ──────────────────────────────────── */
.auth-field {
    margin-bottom: 16px;
}
.auth-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}
.auth-field .form-control,
.auth-field .form-select {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 13.5px;
    color: var(--text);
    width: 100%;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-family: inherit;
}
.auth-field .form-control:focus,
.auth-field .form-select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(46,134,193,.15);
    outline: none;
    background: #fff;
}
.auth-field .form-control::placeholder { color: var(--text-muted); }

/* ── Bouton principal ──────────────────────────────────────── */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    margin-top: 8px;
    font-family: inherit;
}
.auth-btn:hover    { background: var(--blue-dark); }
.auth-btn:active   { transform: scale(.99); }
.auth-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Liens auxiliaires ─────────────────────────────────────── */
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.auth-links a       { color: var(--blue); font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

/* ── Séparateur ────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── Alertes ───────────────────────────────────────────────── */
.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.auth-alert.success { background: rgba(46,204,113,.1);  color: #1a7a42; border: 1px solid rgba(46,204,113,.2); }
.auth-alert.danger  { background: rgba(231,76,60,.08);  color: var(--danger); border: 1px solid rgba(231,76,60,.2); }
.auth-alert.warning { background: rgba(232,184,75,.1);  color: #9a6e00; border: 1px solid rgba(232,184,75,.25); }
.auth-alert i       { flex-shrink: 0; margin-top: 1px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-left { flex: 0 0 300px; padding: 32px 24px; }
    .auth-brand-name { font-size: 18px; }
    .auth-tagline h2 { font-size: 18px; }
    .auth-features   { display: none; }
}
@media (max-width: 640px) {
    .auth-screen { flex-direction: column; }
    .auth-left   { flex: none; padding: 24px; min-height: 200px; }
    .auth-tagline { display: none; }
    .auth-right  { padding: 24px 16px; }
    .auth-card   { padding: 28px 20px; border-radius: var(--radius); box-shadow: none; border: none; }
}
