:root {
    --primary: #812626;      /* Bordeaux */
    --gold: #c5a059;         /* Doré */
    --dark: #1a1a1a;
    --light: #fdfaf5;
    --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f1ec;
    padding: 20px;
}

.auth-card {
    display: flex;
    width: 1000px;
    max-width: 100%;
    min-height: 650px;
    background: #fff;
    overflow: hidden;
    border-radius: 0; /* Luxe : angles droits */
}

/* --- Côté Visuel (Gauche) --- */
.auth-visual {
    flex: 1;
    position: relative;
    background: url('https://images.unsplash.com/photo-1560066984-138dadb4c035?auto=format&fit=crop&q=80') center/cover;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(129, 38, 38, 0.95) 0%, rgba(26, 26, 26, 0.8) 100%);
}

.visual-content { position: relative; z-index: 2; }

.font-marcellus { font-family: 'Marcellus', serif; text-transform: uppercase; letter-spacing: 2px; }
.text-gold { color: var(--gold); }

.logo-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 15px 0;
}

.tagline { opacity: 0.8; font-size: 1.1rem; }

.f-item { margin-bottom: 15px; font-weight: 500; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.f-item i { color: var(--gold); }

/* --- Côté Formulaire (Droit) --- */
.auth-form-side {
    flex: 1.1;
    padding: 60px;
    display: flex;
    align-items: center;
    background: #fff;
}

.form-wrapper { width: 100%; max-width: 380px; margin: auto; }

.premium-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

.input-with-icon {
    position: relative;
    border-bottom: 2px solid #eee;
    transition: var(--transition);
}

.input-with-icon i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    transition: var(--transition);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 30px;
    border: none;
    outline: none;
    font-weight: 500;
}

.input-with-icon:focus-within { border-color: var(--primary); }
.input-with-icon:focus-within i { color: var(--primary); }

.toggle-password {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}
.toggle-password {
    background: none; border: none; color: #ccc; cursor: pointer;
    transition: var(--transition); padding: 0 5px;
}

.toggle-password:hover { color: var(--primary); }

/* --- Boutons --- */
.btn-auth-submit {
    width: 100%;
    background: var(--dark);
    color: white;
    padding: 16px;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-auth-submit:hover {
    background: var(--primary);
    padding-right: 25px;
}

.btn-google-auth {
    background: #fff;
    border: 1px solid #eee;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-google-auth:hover { background: #f9f9f9; border-color: #ddd; }

.divider {
    text-align: center;
    border-bottom: 1px solid #eee;
    line-height: 0.1em;
    margin: 30px 0;
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.divider span { background:#fff; padding:0 10px; }

/* --- Liens --- */
.forgot-link, .signup-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.remember-me label { font-size: 0.9rem; color: #666; cursor: pointer; }

/* --- Alerts --- */
.custom-alert-error { background: #fff1f1; border-left: 4px solid #f44336; color: #d32f2f; font-size: 0.85rem; padding: 15px; }
.custom-alert-success { background: #f1fcf1; border-left: 4px solid #4caf50; color: #2e7d32; font-size: 0.85rem; padding: 15px; }

/* --- Responsive --- */
@media (max-width: 991px) {
    .auth-card { width: 450px; }
    .auth-form-side { padding: 40px; }
}