/* ════════════════════════════════════════════
   AUTH SHARED STYLES — login / register / reset
   Design basé sur template_ia/login.html
   ════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --auth-dark: #111318;
  --auth-dark2: #1a1d22;
  --auth-yellow: #FFC107;
  --auth-gray: #6c757d;
  --auth-border: #e2e8f0;
  --auth-bg: #f4f6fb;
}

/* ── Layout split plein écran ── */
body.auth-body {
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Inter', sans-serif;
  background: var(--auth-bg);
  overflow-x: hidden;
}

/* Reset éléments potentiellement surchargés par theme.min.css */
body.auth-body .auth-split {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.auth-body h1,
body.auth-body h2 {
  margin: 0;
}

.auth-split {
  display: flex;
  min-height: 100vh;
}

/* ══ PANNEAU GAUCHE MARKETING ══ */
.auth-left {
  width: 44%;
  background: linear-gradient(145deg, var(--auth-dark) 0%, var(--auth-dark2) 100%);
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 193, 7, .08);
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 193, 7, .05);
}

.auth-logo {
  text-decoration: none;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}

.brand-text .text-yellow { color: var(--auth-yellow); }

.auth-left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.auth-marketing-title {
  color: #fff;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 32px;
}

.auth-marketing-title span { color: var(--auth-yellow); }

.auth-benefits {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.auth-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-benefit i {
  font-size: 1.2rem;
  color: var(--auth-yellow);
  padding-top: 2px;
  flex-shrink: 0;
}

.auth-benefit strong {
  display: block;
  color: #fff;
  font-size: .9rem;
}

.auth-benefit span {
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}

.auth-left-footer {
  color: var(--auth-yellow);
  font-size: .82rem;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.auth-left-footer i {
  font-size: .7rem;
}

/* ══ PANNEAU DROIT FORMULAIRE ══ */
.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--auth-bg);
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .1);
  padding: 36px;
  width: 100%;
  max-width: 440px;
}

/* ── Onglets ── */
.auth-tabs {
  display: flex;
  background: #f0f2f5;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--auth-gray);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}

.auth-tab.active {
  background: #fff;
  color: var(--auth-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

/* ── Titres formulaire ── */
.auth-form-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--auth-dark);
  margin-bottom: 4px;
}

.auth-form-sub {
  font-size: .85rem;
  color: var(--auth-gray);
  margin-bottom: 24px;
}

/* ── Labels ── */
.lf-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--auth-dark);
  margin-bottom: 6px;
}

/* ── Champs ── */
.lf-input {
  width: 100%;
  border: 1.5px solid var(--auth-border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .9rem;
  color: var(--auth-dark);
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: #fafafa;
  box-sizing: border-box;
}

.lf-input:focus {
  border-color: var(--auth-yellow);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, .15);
  outline: none;
  background: #fff;
}

.lf-input.is-invalid { border-color: #e74c3c !important; }

/* ── Input avec icône ── */
.auth-input-wrap {
  position: relative;
}

.auth-input-wrap > i:first-child {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-gray);
  font-size: .9rem;
  pointer-events: none;
}

.auth-inp { padding-left: 36px !important; }

/* ── Toggle mot de passe ── */
.auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--auth-gray);
  cursor: pointer;
  padding: 4px;
  font-size: .9rem;
  line-height: 1;
}

.auth-eye:hover { color: var(--auth-dark); }

/* ── Ligne remember me ── */
.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: var(--auth-gray);
  cursor: pointer;
}

.auth-remember input { accent-color: var(--auth-yellow); }
.auth-remember a { color: var(--auth-dark); font-weight: 600; }

.auth-forgot {
  font-size: .82rem;
  color: var(--auth-dark);
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot:hover { color: var(--auth-yellow); }

/* ── Bouton principal jaune ── */
.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
}

.cta-btn--yellow {
  background: var(--auth-dark);
  color: var(--auth-yellow);
}

.cta-btn--yellow:hover {
  background: var(--auth-yellow);
  color: var(--auth-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, .3);
}

/* ── Diviseur "ou" ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--auth-gray);
  font-size: .8rem;
}

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

/* ── Boutons sociaux ── */
.auth-social {
  display: flex;
  gap: 10px;
}

.auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f8f9fa;
  border: 1.5px solid #e9ecef;
  border-radius: 8px;
  padding: 10px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  color: var(--auth-dark);
  text-decoration: none;
}

.auth-social-btn:hover {
  border-color: var(--auth-dark);
  background: #fff;
}

/* ── Séparateur social (autre style) ── */
.auth-social-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #adb5bd;
  font-size: .78rem;
}

.auth-social-sep::before,
.auth-social-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e9ecef;
}

/* ── Lien retour boutique ── */
.auth-back {
  margin-top: 20px;
  font-size: .82rem;
  text-align: center;
}

.auth-back a {
  color: var(--auth-gray);
  text-decoration: none;
}

.auth-back a:hover { color: var(--auth-dark); }

/* ── Liens bas de form ── */
.auth-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .82rem;
  color: var(--auth-gray);
}

.auth-links a { color: var(--auth-dark); font-weight: 700; text-decoration: none; }
.auth-links a:hover { color: var(--auth-yellow); }

.auth-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  font-size: .82rem;
}

.auth-check-row a { color: var(--auth-gray); text-decoration: none; }
.auth-check-row a:hover { color: var(--auth-yellow); }

/* ── Speed login (outline jaune) ── */
.auth-btn-speed {
  width: 100%;
  background: transparent;
  color: var(--auth-dark);
  border: 2px solid var(--auth-dark);
  border-radius: 10px;
  padding: 11px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  margin-bottom: 10px;
}

.auth-btn-speed:hover {
  background: var(--auth-dark);
  color: var(--auth-yellow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ── Bouton outline secondaire ── */
.cta-btn--outline {
  background: transparent;
  color: var(--auth-dark);
  border: 2px solid var(--auth-dark);
}

.cta-btn--outline:hover {
  background: var(--auth-dark);
  color: var(--auth-yellow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ── 2FA ── */
.auth-twofa-input {
  width: 100%;
  border: 2px solid var(--auth-border);
  border-radius: 12px;
  padding: 14px;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: .3em;
  color: var(--auth-dark);
  font-family: monospace;
  transition: border-color .2s;
}

.auth-twofa-input:focus { border-color: var(--auth-yellow); outline: none; }

/* ── Alerts ── */
.auth-alert-success {
  background: rgba(39, 174, 96, .08);
  border: 1.5px solid rgba(39, 174, 96, .25);
  color: #1a6b3c;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.auth-alert-danger {
  background: rgba(231, 76, 60, .08);
  border: 1.5px solid rgba(231, 76, 60, .25);
  color: #a93226;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {
  .auth-split { flex-direction: column; }
  .auth-left { width: 100%; min-height: auto; padding: 28px 24px; }
  .auth-left-content, .auth-benefits { display: none; }
  .auth-left-footer { display: none; }
  .auth-right { padding: 28px 16px; }
  .auth-card { padding: 28px 20px; }
}
