/* ═══════════════════════════════════════════════════
   AUTH — Nemobilier
   Layout deux colonnes : branding gauche / form droite
═══════════════════════════════════════════════════ */

.auth-body {
    margin: 0;
    padding: 0;
    background: #f0f4f8;
    min-height: 100vh;
    font-family: 'DM Sans', sans-serif;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ── Panel gauche — branding ─────────────────────── */
.auth-brand {
    background: linear-gradient(145deg, #1a3a5c 0%, #1d5a9e 60%, #2471c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
}

/* Cercles décoratifs */
.auth-brand::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    top: -100px;
    right: -100px;
}

.auth-brand::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.05);
    bottom: -200px;
    left: -200px;
}

.auth-brand__inner {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.auth-brand__logo {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.auth-brand__name {
    font-family: 'Sora', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.auth-brand__tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 40px;
    line-height: 1.5;
}

.auth-brand__features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
}

.auth-brand__feature i {
    color: #5db8ff;
    font-size: 15px;
    flex-shrink: 0;
}

/* ── Panel droit — formulaire ────────────────────── */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    background: #f0f4f8;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(15, 30, 50, 0.08);
}

.auth-card__header {
    margin-bottom: 28px;
}

.auth-card__title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a2535;
    margin: 0 0 6px;
}

.auth-card__subtitle {
    font-size: 14px;
    color: #6b7a90;
    margin: 0;
}

/* ── Flash ───────────────────────────────────────── */
.auth-flash {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 20px;
}

.auth-flash--error {
    background: #fef2f2;
    color: #c0392b;
    border: 1px solid #fecaca;
}

.auth-flash--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-flash--info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* ── Form ────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7a90;
    font-size: 14px;
    pointer-events: none;
}

.auth-input {
    padding-left: 40px !important;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

/* ── Google ──────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #9ba8b8;
    font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.auth-google {
    width: 100%;
    justify-content: center;
    gap: 10px;
    border: 1px solid #e2e8f0 !important;
}

/* ── Footer ──────────────────────────────────────── */
.auth-card__footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6b7a90;
}

.auth-card__footer a {
    color: #1d5a9e;
    font-weight: 600;
    text-decoration: none;
}

.auth-card__footer a:hover {
    text-decoration: underline;
}

/* ── Resend ──────────────────────────────────────── */
.auth-resend {
    margin-top: 20px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.auth-resend details summary {
    font-size: 13px;
    color: #6b7a90;
    cursor: pointer;
    list-style: none;
    text-align: center;
}

.auth-resend details summary::-webkit-details-marker { display: none; }

.auth-resend details summary:hover { color: #1d5a9e; }

.auth-resend__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        display: none;
    }

    .auth-form-panel {
        padding: 24px 16px;
    }

    .auth-card {
        padding: 28px 20px;
    }
}