/* ═══════════════════════════════════════════════════════════════════
   TECHUB — AUTH.CSS  Connexion, inscription, compte client
═══════════════════════════════════════════════════════════════════ */

/* ─── Shell centré ────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  padding: 40px 20px;
}
.auth-wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
}

/* ─── Layout 2 colonnes ───────────────────────────────────────────── */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ─── Panneau gauche — branding ───────────────────────────────────── */
.auth-brand {
  background: var(--navy);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.auth-brand::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 999px;
  background: rgba(15,110,86,.2);
}
.auth-brand::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 999px;
  background: rgba(15,110,86,.12);
}
.auth-brand-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 32px;
  position: relative; z-index: 1;
}
.auth-brand-logo span { color: var(--teal); }
.auth-brand h2 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  position: relative; z-index: 1;
}
.auth-brand p {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.auth-brand-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative; z-index: 1;
}
.auth-brand-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  padding: 12px 14px;
}
.auth-brand-step-num {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.auth-brand-step strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 2px;
}
.auth-brand-step span {
  font-size: 12px;
  color: rgba(255,255,255,.4);
}

/* ─── Panneau droit — formulaire ──────────────────────────────────── */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(11,30,51,.06);
}
.auth-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  margin-bottom: 8px;
  display: block;
}
.auth-card h1 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.auth-card-lead {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-submit {
  width: 100%;
  height: 48px;
  font-size: 15px;
  border-radius: var(--r-lg);
  margin-top: 4px;
}
.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth-footer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ─── Page compte client ──────────────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.account-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.account-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px 22px;
}
.account-kpi-num   { display: block; font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1 }
.account-kpi-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 8px }
.account-info-rows { display: flex; flex-direction: column; gap: 0 }
.account-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  font-size: 14px;
}
.account-info-row:last-child { border-bottom: 0 }
.account-info-row label { font-weight: 600; color: var(--navy) }
.account-info-row span  { color: var(--muted) }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-layout   { grid-template-columns: 1fr }
  .auth-brand    { display: none }
  .auth-page     { padding: 24px 16px }
  .account-layout{ grid-template-columns: 1fr }
  .auth-form-row { grid-template-columns: 1fr }
}
@media (max-width: 600px) {
  .account-kpis  { grid-template-columns: 1fr 1fr }
  .auth-card     { padding: 24px 20px }
}
