/* ═══════════════════════════════════════════════════════════
   KAHWA CONNECT — connexion.css
   Page connexion + mot de passe oublié
═══════════════════════════════════════════════════════════ */

.connexion-page {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-50) 60%, var(--blue-100) 100%);
  display: flex;
  flex-direction: column;
}

/* ─── NAV MINIMALISTE (même que inscription) ────────────── */
.nav-simple {
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-simple-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-simple-logo img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.nav-simple-logo .brand-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-900);
}
.nav-simple-back {
  font-size: 13.5px;
  color: var(--grey-400);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.nav-simple-back:hover { color: var(--blue-700); }

/* ─── CONTAINER CENTRÉ ──────────────────────────────────── */
.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  width: 100%;
}

/* ─── CÔTÉ GAUCHE — PITCH ───────────────────────────────── */
.auth-pitch {
  animation: fadeUp 0.6s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}
.auth-pitch-icon { font-size: 52px; margin-bottom: 20px; display: block; }
.auth-pitch h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 12px;
  line-height: 1.25;
}
.auth-pitch p {
  font-size: 16px;
  color: var(--grey-600);
  line-height: 1.7;
  margin-bottom: 28px;
}
.auth-pitch-slogan {
  font-family: var(--font-arab);
  font-size: 17px;
  color: var(--pink-500);
  direction: rtl;
  font-weight: 600;
  display: block;
  margin-bottom: 28px;
}
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--grey-600);
}
.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ─── CARTE LOGIN ───────────────────────────────────────── */
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(10,56,168,0.14), 0 4px 20px rgba(10,56,168,0.07);
  border: 1px solid var(--grey-100);
  overflow: hidden;
  animation: fadeUp 0.6s ease 0.1s both;
  position: relative;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--pink-500));
}

/* Tabs connexion / inscription */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--grey-100);
}
.auth-tab {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-400);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: transparent;
  font-family: var(--font-sans);
}
.auth-tab.active {
  color: var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  background: var(--blue-50);
}
.auth-tab:hover:not(.active) { color: var(--blue-600); background: var(--grey-50); }

.auth-body { padding: 32px; }

.auth-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 4px;
}
.auth-sub {
  font-size: 13.5px;
  color: var(--grey-400);
  margin-bottom: 24px;
}

/* Input avec icône */
.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}
.input-icon-wrap .form-control {
  padding-left: 40px;
}
.input-icon-wrap .input-toggle-pwd {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--grey-400);
  padding: 0;
}

.forgot-link {
  display: block;
  text-align: right;
  font-size: 12.5px;
  color: var(--blue-600);
  text-decoration: none;
  margin-top: -8px;
  margin-bottom: 20px;
}
.forgot-link:hover { text-decoration: underline; }

.btn-auth {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(21,80,200,0.28);
  position: relative;
  overflow: hidden;
}
.btn-auth::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-auth:hover::after { opacity: 1; }
.btn-auth span { position: relative; z-index: 1; }
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(21,80,200,0.38); }

.auth-footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--grey-400);
  margin-top: 20px;
}
.auth-footer-text a {
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer-text a:hover { text-decoration: underline; }

/* ─── PANEL MOT DE PASSE OUBLIÉ ─────────────────────────── */
.forgot-panel { display: none; padding: 32px; }
.forgot-panel.active { display: block; }
.forgot-back {
  background: none;
  border: none;
  font-size: 13.5px;
  color: var(--grey-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0;
  font-family: var(--font-sans);
  transition: color var(--transition);
}
.forgot-back:hover { color: var(--blue-700); }

.forgot-success {
  display: none;
  background: #F0FDF4;
  border: 1px solid #22C55E;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.forgot-success.active { display: block; }
.forgot-success h4 {
  font-size: 16px;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 6px;
}
.forgot-success p { font-size: 13.5px; color: #166534; }

/* ─── ADSENSE SLOT ──────────────────────────────────────── */
.ad-slot {
  max-width: 900px;
  margin: 0 auto 32px;
  width: 100%;
  padding: 0 24px;
  text-align: center;
}
.ad-slot-label {
  font-size: 10px;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .auth-pitch { display: none; }
  .auth-container { align-items: flex-start; padding-top: 32px; }
}
