:root {
  --bg: #0c0815;
  --bg-pattern: url("../images/bg-pattern.svg");
  --surface: #15101f;
  --surface-2: #1a1430;
  --border: #2a2a32;
  --border-focus: #3f3f4a;
  --text: #f4f4f5;
  --muted: #9ca3af;
  --accent: #f97316;
  --accent-hover: #fb923c;
  --accent-pressed: #ea580c;
  --logo-red: #dc2626;
  --radius: 10px;
  --radius-lg: 12px;
  --max: 400px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    var(--bg-pattern) 0 0 / 56px 56px repeat,
    radial-gradient(ellipse 100% 90% at 50% -28%, rgba(251, 146, 60, 0.14), transparent 52%),
    radial-gradient(ellipse 85% 65% at 100% 100%, rgba(167, 139, 250, 0.14), transparent 46%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(244, 114, 182, 0.08), transparent 45%),
    var(--bg);
  background-attachment: fixed, fixed, fixed, fixed, scroll;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  position: relative;
  overflow-x: hidden;
}

#root {
  width: 100%;
  max-width: var(--max);
}

.dsc-formulaire-root {
  position: relative;
  z-index: 0;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgb(255 38 88 / 18%);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: rgb(181 42 255 / 12%);
  bottom: -80px;
  left: -120px;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.logo-wrap {
  margin-bottom: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: min(220px, 85vw);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255, 149, 0, 0.4));
}

.logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: none;
  color: var(--text);
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.4),
    0 2px 16px rgba(0, 0, 0, 0.8);
}

.logo .accent {
  color: var(--logo-red);
  text-shadow:
    0 0 12px rgba(220, 38, 38, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.9);
}

.logo-splinter {
  position: absolute;
  inset: -8px -12px;
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.9) 0%, transparent 45%, rgba(20, 20, 24, 0.6) 100%);
  border-radius: 4px;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 22px;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-social:hover {
  background: var(--surface-2);
  border-color: var(--border-focus);
}

.btn-social svg {
  flex-shrink: 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.75rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.12);
}

.field .icon-lead {
  flex-shrink: 0;
  color: var(--muted);
  display: flex;
}

.field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.9375rem;
  outline: none;
}

.field input::placeholder {
  color: #6b7280;
}

.field-email .field-trail {
  flex-shrink: 0;
  opacity: 0.75;
}

.btn-register {
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s, transform 0.1s;
}

.btn-register:hover {
  background: var(--accent-hover);
}

.btn-register:active {
  background: var(--accent-pressed);
  transform: scale(0.99);
}

.footer {
  margin-top: 28px;
  font-size: 0.875rem;
  color: var(--text);
}

.footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Carte inscription / connexion (2026) */
body.dsc-site .dsc-formulaire-root .screen {
  width: 100%;
  max-width: 428px;
  margin: 0 auto;
  padding: 32px 28px 34px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(20, 20, 28, 0.94), rgba(10, 10, 14, 0.9));
  backdrop-filter: blur(18px);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(249, 115, 22, 0.06) inset;
}

body.dsc-site .dsc-formulaire-root h1 {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
}

body.dsc-site .btn-register {
  border-radius: 14px;
  background: linear-gradient(125deg, #ea580c, #f97316);
  box-shadow: 0 14px 40px rgba(249, 115, 22, 0.3);
}

body.dsc-site .btn-register:hover {
  background: linear-gradient(125deg, #f97316, #fb923c);
}

body.dsc-site .btn-social:hover {
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
