/* ═══════════════════════════════════════════════════════════════
   Auth — Nas-Sarra Immobilier
   ═══════════════════════════════════════════════════════════════ */

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

/* ─── Shell ─────────────────────────────────────────────────────── */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ─── Panneau gauche ─────────────────────────────────────────────── */
.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0a1520 0%, #112034 60%, #0a1520 100%);
}

/* Halos décoratifs via pseudo-éléments uniquement */
.auth-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,.12) 0%, transparent 65%);
  pointer-events: none;
}
.auth-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,.08) 0%, transparent 65%);
  pointer-events: none;
}

/* Contenu centré */
.auth-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 320px;
}

/* Logo */
.auth-brand-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}
.auth-brand-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,169,110,.2) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.2); opacity: .5; }
}
.auth-brand-icon {
  position: relative;
  width: 76px; height: 76px;
  background: linear-gradient(135deg, #c8a96e, #9b7a3d);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 700;
  color: #0d1b2a;
  box-shadow: 0 10px 36px rgba(200,169,110,.38), 0 2px 8px rgba(0,0,0,.3);
}

.auth-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.3px;
  margin-bottom: 4px;
}
.auth-brand-sub {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c8a96e;
}

.auth-divider {
  width: 44px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c8a96e, transparent);
  margin: 1.4rem auto;
  border-radius: 2px;
}

.auth-tagline {
  font-size: 13.5px;
  color: rgba(255,255,255,.48);
  line-height: 1.75;
  margin: 0 0 1.75rem;
}

/* Liste features */
.auth-features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-align: left;
}
.auth-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 12.5px;
  color: rgba(255,255,255,.6);
}
.auth-feat-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(200,169,110,.12);
  border: 1px solid rgba(200,169,110,.28);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-feat-dot svg {
  width: 9px; height: 9px;
  stroke: #c8a96e;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Badge localisation */
.auth-location {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .9rem;
  border-radius: 100px;
  border: 1px solid rgba(200,169,110,.18);
  background: rgba(200,169,110,.05);
  font-size: 11px;
  color: rgba(255,255,255,.4);
}
.auth-location svg {
  width: 11px; height: 11px;
  stroke: #c8a96e;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── Panneau droit ──────────────────────────────────────────────── */
.auth-right {
  width: 450px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.75rem;
  position: relative;
  box-shadow: -10px 0 50px rgba(0,0,0,.22);
}
.auth-right::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c8a96e, #9b7a3d, #c8a96e);
}

/* Mini marque */
.auth-form-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
}
.auth-form-brand-dot {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #c8a96e, #9b7a3d);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 700;
  color: #0d1b2a;
}
.auth-form-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 13.5px; font-weight: 600;
  color: #0d1b2a;
  line-height: 1.2;
}
.auth-form-brand-text span {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 9.5px; font-weight: 400;
  color: #9a9a9a;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: #0d1b2a;
  margin: 0 0 .3rem;
}
.auth-form-sub {
  font-size: 13px;
  color: #5a5a5a;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}

/* ─── Champs ─────────────────────────────────────────────────────── */
.auth-field { margin-bottom: 1.1rem; }

.auth-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .45rem;
}

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

.auth-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  pointer-events: none;
  color: #9a9a9a;
  transition: color .2s;
  display: flex; align-items: center;
}
.auth-input-icon svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-input {
  width: 100%;
  padding: .78rem 1rem .78rem 2.5rem;
  border: 1.5px solid #e2d9cc;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #0d1b2a;
  background: #fafafa;
  box-sizing: border-box;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-input:focus {
  outline: none;
  border-color: #c8a96e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,169,110,.13);
}
.auth-input:focus ~ .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon { color: #c8a96e; }

/* Mot de passe */
.auth-pass-wrap { position: relative; }
.auth-pass-wrap .auth-input { padding-right: 44px; }
.auth-pass-toggle {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; padding: 4px;
  color: #9a9a9a;
  display: flex; align-items: center;
  transition: color .18s;
  line-height: 1;
}
.auth-pass-toggle:hover { color: #0d1b2a; }
.auth-pass-toggle svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Bouton ─────────────────────────────────────────────────────── */
.auth-btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a3a5c 100%);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  letter-spacing: .2px;
  position: relative;
  overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  margin-top: .4rem;
}
.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(13,27,42,.28);
}
.auth-btn:active { transform: none; }
.auth-btn.loading {
  pointer-events: none; opacity: .78;
}
.auth-btn.loading::after {
  content: '';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin .65s linear infinite;
}
@keyframes auth-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ─── Liens ──────────────────────────────────────────────────────── */
.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 13px;
  color: #5a5a5a;
}
.auth-links a { color: #9b7a3d; font-weight: 600; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* ─── Alerte ─────────────────────────────────────────────────────── */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.auth-alert svg {
  width: 15px; height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-alert-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.auth-alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.auth-footer-note {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #e2d9cc;
  text-align: center;
  font-size: 10.5px;
  color: #9a9a9a;
  line-height: 1.8;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .auth-left  { display: none; }
  .auth-right { width: 100%; padding: 2rem 1.5rem; }
}
