/* ================================================================
   METIKAZ — CSS Authentification (frontend)
   Fichier : public/assets/css/auth.css
   ================================================================ */

* { font-family: 'DM Sans', sans-serif; }

body {
    min-height: 100vh;
    background: #3B2314;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(232,73,15,.35) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245,166,35,.25) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(193,68,14,.2) 0%, transparent 50%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}

.auth-split {
    display: flex;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,.5);
}

/* ── Panneau décoratif gauche ────────────────────────────────────── */
.auth-deco {
    flex: 1;
    background: linear-gradient(145deg, #E8490F 0%, #F5A623 60%, #F7C948 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-deco-brand {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}
.auth-deco-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}
.auth-deco-sub { color: rgba(255,255,255,.8); font-size: .95rem; margin-top: 12px; }
.auth-deco-features { list-style: none; padding: 0; margin: 0; }
.auth-deco-features li {
    color: rgba(255,255,255,.9);
    font-size: .875rem;
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0;
}
.auth-deco-features li i { font-size: 1rem; }

/* ── Panneau formulaire droit ────────────────────────────────────── */
.auth-form {
    flex: 1;
    background: #FFF9F2;
    padding: 48px 44px;
}
.auth-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #3B2314;
    margin-bottom: 4px;
}
.auth-form p.subtitle { color: #7A5C48; font-size: .9rem; margin-bottom: 28px; }

.form-label { color: #7A5C48; font-weight: 600; font-size: .875rem; margin-bottom: 6px; }
.form-control {
    border: 2px solid #e8d5c0;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: .9rem;
    background: white;
}
.form-control:focus {
    border-color: #F5A623;
    box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}

.btn-submit {
    background: linear-gradient(135deg, #E8490F, #F5A623);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 13px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    transition: all .2s;
    box-shadow: 0 6px 20px rgba(232,73,15,.35);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(232,73,15,.45);
    color: white;
}

.btn-oauth {
    border: 2px solid #e8d5c0;
    background: white;
    color: #3B2314;
    border-radius: 6px;
    padding: 11px;
    font-weight: 600;
    font-size: .875rem;
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all .2s;
    text-decoration: none;
    margin-bottom: 10px;
}
.btn-oauth:hover { border-color: #F5A623; background: #FFF9F2; color: #3B2314; }
.btn-oauth-fb { background: #1877f2; border-color: #1877f2; color: white; }
.btn-oauth-fb:hover { background: #166fe5; border-color: #166fe5; color: white; }

.divider {
    text-align: center; position: relative; margin: 20px 0;
}
.divider::before, .divider::after {
    content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: #e8d5c0;
}
.divider::before { left: 0; }
.divider::after { right: 0; }
.divider span { background: #FFF9F2; padding: 0 12px; color: #7A5C48; font-size: .8rem; }

.link-warm { color: #E8490F; font-weight: 600; text-decoration: none; }
.link-warm:hover { color: #C1440E; }

.alert-danger { background: #FFF0EE; color: #C1440E; border: none; border-left: 4px solid #E8490F; border-radius: 6px; font-size: .875rem; }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 700px) {
    .auth-deco { display: none; }
    .auth-form { padding: 36px 28px; border-radius: 12px; }
    .auth-split { border-radius: 12px; }
}
