/* ══════════════════════════════════════════
   LOGIN / SIGNUP
   ══════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (login / signup) — D1 Solaire épuré, matches landing
   ═══════════════════════════════════════════════════════════════ */

.auth-scene {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #0a0a0a;
  color: #eee;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Inter, Roboto, sans-serif;
  display: flex;
  flex-direction: column;
}

.auth-top-logo {
  position: absolute;
  top: 22px; left: 36px;
  z-index: 10;
  text-decoration: none !important;
  transition: opacity 0.15s;
}
.auth-top-logo:hover { opacity: 0.75; }

.auth-card {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: 90vw;
  padding: 0 8px;
  margin: auto;
}

.auth-logo {
  width: 140%;
  height: auto;
  display: block;
  margin: 0 0 0 -20%;
}

.auth-eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  color: #F5A623;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  margin-top: -2px;
  margin-bottom: 28px;
}

.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid #2a2a2a !important;
  color: #eee !important;
  font-family: inherit !important;
  font-size: 14px !important;
  padding: 13px 14px !important;
  border-radius: 2px !important;
  margin-bottom: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.auth-input:focus {
  border-color: #F5A623 !important;
  background: rgba(245, 166, 35, 0.04) !important;
  box-shadow: none !important;
  outline: none !important;
}
.auth-input::placeholder {
  color: #666 !important;
  font-family: inherit !important;
}

.auth-btn {
  width: 100%;
  background: #F5A623 !important;
  border: none !important;
  color: #000 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 2px !important;
  padding: 14px 0 !important;
  border-radius: var(--r-btn) !important;
  text-decoration: none !important;
  margin-top: 8px;
  cursor: pointer;
  transition: filter 0.15s;
}
.auth-btn:hover {
  filter: brightness(1.08) !important;
  color: #000 !important;
  background: #F5A623 !important;
}

.auth-error {
  color: #FF3737;
  font-size: 11px;
  letter-spacing: 0.3px;
  min-height: 18px;
  text-align: center;
  margin: 4px 0 8px;
  width: 100%;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
}
.auth-footer-text { color: #888; }
.auth-link {
  color: #F5A623 !important;
  text-decoration: none !important;
  letter-spacing: 0.3px;
  transition: filter 0.15s;
}
.auth-link:hover { filter: brightness(1.2); }

@media (max-width: 480px) {
  .auth-top-logo { top: 16px; left: 20px; }
  .auth-card { width: 100%; padding: 0 24px; }
}

/* ── OAuth providers (Google / LinkedIn) ── */
.auth-oauth { display: flex; flex-direction: column; }

.auth-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; }
.auth-divider::before, .auth-divider::after {
  content: ''; height: 1px; flex: 1; background: #242424;
}
.auth-divider-label {
  color: #585858; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
}

.auth-provider-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 0; margin-bottom: 9px;
  background: transparent; border: 1px solid #2a2a2a; border-radius: var(--r-btn);
  color: #cfcfcf !important; font-family: inherit !important;
  font-size: 13px; font-weight: 500; letter-spacing: 0.2px;
  text-decoration: none !important; cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.auth-provider-btn:hover {
  border-color: #3a3a3a; background: rgba(255, 255, 255, 0.03); color: #fff !important;
}
.auth-provider-icon { width: 18px; height: 18px; flex-shrink: 0; }

.auth-legal {
  font-size: 10px; color: #5a5a5a; text-align: center; line-height: 1.5; margin-top: 6px;
}
.auth-legal-link { color: #7a7a7a !important; text-decoration: none !important; }
.auth-legal-link:hover { color: #9a9a9a !important; }

/* ── Scrollbar styling ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ═══════════════════════════════════════════════════════════════
   CONNEXION — refonte split-écran « Premier Jour » (2026-06, Task 7)
   Scopé .auth-split → n'affecte PAS les pages .auth-scene partagées
   (légales, upgrade). Valeurs reprises À L'IDENTIQUE du companion validé.
   ═══════════════════════════════════════════════════════════════ */
.auth-split {
  display: flex; min-height: 100dvh; width: 100%;
  background: #0a0a0a; color: #eee; overflow: hidden;
  font-family: var(--font-sans);
}

/* ── Aside identité solaire (gauche) ── */
.auth-split .auth-aside {
  position: relative; flex: 1.12; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 54px;
  background: linear-gradient(180deg, #070708 0%, #0b0a0c 58%, #150e07 100%);
}
.auth-split .auth-sun {
  position: absolute; left: 50%; bottom: -26%; transform: translateX(-50%);
  width: 118%; height: 86%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(245,166,35,.60), rgba(245,166,35,.14) 40%, transparent 66%);
}
.auth-split .auth-sun::after {
  content: ""; position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,156,.92), rgba(245,166,35,.5) 42%, transparent 68%);
  filter: blur(4px);
}
.auth-split .auth-aside-horizon {
  position: absolute; left: 0; right: 0; bottom: 35%; height: 1px; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(245,166,35,.40), transparent);
}
/* logo épinglé dans le coin haut-gauche (la vision validée par Benjamin) */
.auth-split .auth-aside-logowrap {
  position: absolute; top: 46px; left: 54px; z-index: 2;
  display: block; text-decoration: none !important; transition: opacity .15s;
}
.auth-split .auth-aside-logowrap:hover { opacity: .8; }
.auth-split .auth-aside-logo { height: 58px; width: auto; display: block; }
.auth-split .auth-aside-content { position: relative; z-index: 2; }
.auth-split .auth-accroche {
  font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; line-height: 1.12;
  letter-spacing: -.02em; color: #fff;
}
.auth-split .auth-accroche-hl { color: var(--accent); }
.auth-split .auth-aside-sub {
  margin-top: 16px; font-size: 13px; line-height: 1.6; color: #b8b8bc; white-space: nowrap;
}

/* ── Formulaire (droite) ── */
.auth-split .auth-form-wrap {
  flex: .88; display: flex; align-items: center; justify-content: center;
  padding: 48px 40px; background: #0a0a0a; overflow-y: auto;
}
.auth-split .auth-form { width: 100%; max-width: 360px; }
.auth-split .auth-eyebrow { text-align: left; margin: 0; }
.auth-split .auth-title {
  font-size: 27px; font-weight: 600; letter-spacing: -.02em; color: #fff; margin: 10px 0 22px;
}
.auth-split .auth-input:focus { box-shadow: 0 0 0 3px rgba(245,166,35,.12) !important; }
/* bouton en MAJUSCULES (comme le companion validé) */
.auth-split .auth-btn { text-transform: uppercase; }

/* case CGU (signup) */
.auth-split .auth-checkbox { margin: 2px 0 6px; }
.auth-split .auth-checkbox .form-check-input { accent-color: var(--accent); }
.auth-split .auth-checkbox .form-check-label { font-size: 12px; color: #9a9aa0; line-height: 1.5; }
.auth-split .auth-checkbox a { color: #7a7a7a !important; }

/* ── Responsive : aside au-dessus (réduite), formulaire pleine largeur ── */
@media (max-width: 768px) {
  .auth-split { flex-direction: column; }
  .auth-split .auth-aside { flex: none; min-height: 220px; justify-content: center; padding: 30px; }
  .auth-split .auth-aside-logowrap { position: static; margin-bottom: 14px; }
  .auth-split .auth-aside-logo { height: 34px; }
  .auth-split .auth-aside-sub { display: none; }
  .auth-split .auth-form-wrap { padding: 34px 26px; }
}

/* ── Animations de révélation (CSS pur, coupées si reduced-motion) ── */
@keyframes auth-rise-sun { from { transform: translateX(-50%) translateY(40px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@keyframes auth-fade-up  { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes auth-aside-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.auth-split .auth-sun { animation: auth-rise-sun 1.5s cubic-bezier(.22,.61,.36,1) both; }
.auth-split .auth-aside-logowrap { animation: auth-aside-in .9s ease both .12s; }
.auth-split .auth-aside-content { animation: auth-aside-in 1s ease both .22s; }
.auth-split .auth-form > * { animation: auth-fade-up .6s cubic-bezier(.22,.61,.36,1) both; }
.auth-split .auth-form > *:nth-child(1) { animation-delay: .06s; }
.auth-split .auth-form > *:nth-child(2) { animation-delay: .12s; }
.auth-split .auth-form > *:nth-child(3) { animation-delay: .18s; }
.auth-split .auth-form > *:nth-child(4) { animation-delay: .24s; }
.auth-split .auth-form > *:nth-child(5) { animation-delay: .30s; }
.auth-split .auth-form > *:nth-child(6) { animation-delay: .36s; }
.auth-split .auth-form > *:nth-child(7) { animation-delay: .42s; }
.auth-split .auth-form > *:nth-child(8) { animation-delay: .48s; }
.auth-split .auth-form > *:nth-child(9) { animation-delay: .54s; }
@media (prefers-reduced-motion: reduce) {
  .auth-split .auth-sun,
  .auth-split .auth-aside-logowrap,
  .auth-split .auth-aside-content,
  .auth-split .auth-form > * { animation: none; }
}

