/* ═══════════════════════════════════════════════════════════
   CCJY — Auth Pages Design System  (v2.0)
   Connexion / Inscription / Reset password
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --ccjy-orange:   #f97316;
  --ccjy-orange-d: #ea580c;
  --ccjy-green:    #088137;
  --ccjy-blue:     #14213d;
  --ccjy-blue-2:   #243b6b;
  --ccjy-light:    #f8fafc;
  --ccjy-border:   #e5e7eb;
  --ccjy-text:     #1f2937;
  --ccjy-muted:    #6b7280;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── AUTH WRAPPER ───────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(249,115,22,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(8,129,55,.05) 0%, transparent 60%),
    linear-gradient(160deg, #0c1628 0%, #14213d 50%, #1a3055 100%);
  padding: 40px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Geometric decoration */
.auth-wrapper::before {
  content: '';
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(249,115,22,.06);
  pointer-events: none;
}
.auth-wrapper::after {
  content: '';
  position: absolute;
  left: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(8,129,55,.05);
  pointer-events: none;
}

/* ── AUTH CARD ──────────────────────────────────────────────── */
.auth-card {
  background: #fff;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.3) !important;
  border: none !important;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* Subtle top accent bar */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ccjy-orange) 0%, #fb923c 50%, var(--ccjy-green) 100%);
}

/* ── AUTH LOGO AREA ──────────────────────────────────────────── */
.auth-logo-area {
  text-align: center;
  padding: 2rem 2rem 1rem;
}
.auth-logo-area img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.auth-logo-area .auth-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ccjy-blue);
  letter-spacing: -.025em;
  margin-top: .75rem;
  margin-bottom: .25rem;
}
.auth-logo-area .auth-subtitle {
  font-size: .85rem;
  color: var(--ccjy-muted);
  margin: 0;
}

/* ── FORM ELEMENTS ──────────────────────────────────────────── */
.auth-card .form-label {
  font-weight: 600 !important;
  font-size: .82rem !important;
  color: var(--ccjy-blue) !important;
  letter-spacing: .01em;
  margin-bottom: .35rem !important;
}
.auth-card .form-control,
.auth-card .form-select {
  border-radius: 10px !important;
  border: 1.5px solid var(--ccjy-border) !important;
  font-size: .9rem !important;
  padding: .65rem 1rem !important;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s !important;
  background: #fafafa;
}
.auth-card .form-control:focus,
.auth-card .form-select:focus {
  border-color: var(--ccjy-orange) !important;
  box-shadow: 0 0 0 3px rgba(249,115,22,.12) !important;
  background: #fff !important;
  outline: none !important;
}

/* Input groups */
.auth-card .input-group-text {
  background: var(--ccjy-light);
  border: 1.5px solid var(--ccjy-border);
  color: var(--ccjy-muted);
  border-radius: 10px 0 0 10px !important;
  border-right: none;
}
.auth-card .input-group .form-control {
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
}
.auth-card .input-group:focus-within .input-group-text {
  border-color: var(--ccjy-orange);
}

/* ── AUTH BUTTONS ───────────────────────────────────────────── */
.auth-card .btn-orange,
.auth-btn-primary {
  background: var(--ccjy-orange) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: .75rem 1.25rem !important;
  font-size: .95rem !important;
  transition: all .2s !important;
  box-shadow: 0 4px 16px rgba(249,115,22,.35) !important;
  position: relative;
  overflow: hidden;
}
.auth-card .btn-orange:hover,
.auth-btn-primary:hover {
  background: var(--ccjy-orange-d) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(249,115,22,.45) !important;
}
.auth-card .btn-orange:active { transform: scale(.98); }

.auth-card .btn-green {
  background: var(--ccjy-green) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border: none !important;
  border-radius: 12px !important;
  padding: .75rem 1.25rem !important;
  font-size: .95rem !important;
  transition: all .2s !important;
  box-shadow: 0 4px 16px rgba(8,129,55,.3) !important;
}
.auth-card .btn-green:hover {
  background: var(--ccjy-green-d, #06692d) !important;
  transform: translateY(-1px);
}

/* ── DIVIDER ─────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ccjy-muted);
  font-size: .78rem;
  font-weight: 600;
  margin: 1rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ccjy-border);
}

/* ── LINKS ───────────────────────────────────────────────────── */
.auth-card a {
  color: var(--ccjy-orange);
  font-weight: 600;
  text-decoration: none;
}
.auth-card a:hover {
  color: var(--ccjy-orange-d);
  text-decoration: underline;
}

/* ── BACK LINK ───────────────────────────────────────────────── */
.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color .15s;
  position: relative;
  z-index: 2;
}
.auth-back-link:hover { color: rgba(255,255,255,.85); }

/* ── FEATURES LIST (inscription) ─────────────────────────────── */
.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  line-height: 1.5;
}
.auth-features li:last-child { border-bottom: none; }
.auth-features li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(249,115,22,.2);
  color: #fb923c;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── ERROR / SUCCESS ─────────────────────────────────────────── */
.auth-error {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}
.auth-success {
  background: #dcfce7;
  color: #166534;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: .875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 576px) {
  .auth-wrapper { padding: 24px 12px; }
  .auth-card { border-radius: var(--radius-lg) !important; }
  .auth-logo-area { padding: 1.5rem 1.5rem .75rem; }
}
