* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f3f5f2; color: #1c2b24;
}
/* --- Connexion : fond dégradé + croquis de maisons qui défilent lentement --- */
.wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  position: relative; overflow: hidden; background: #0d3327;
}
.bg-scene { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.bg-scene::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(165deg, #0d3327 0%, #1F5D4C 55%, #123c2b 100%);
}
.bg-glow {
  position: absolute; width: 50vw; height: 50vw; max-width: 560px; max-height: 560px;
  border-radius: 50%; background: #D8A24A; filter: blur(110px); opacity: .16;
  top: -10%; left: -8%; animation: bg-float 30s ease-in-out infinite;
}
@keyframes bg-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8%, 6%) scale(1.08); }
}
.house-row {
  position: absolute; left: 0; top: 64%; display: flex; align-items: flex-end; gap: 170px;
  width: max-content; animation: house-scroll 110s linear infinite;
}
.h-icon {
  width: 46px; height: 42px; flex: 0 0 auto;
  fill: none; stroke: #ffffff; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round;
  opacity: .28;
}
@keyframes house-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow, .house-row { animation: none; }
}

.card {
  width: 100%; max-width: 400px; background: rgba(255,255,255,.97); border-radius: 16px; padding: 32px 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  text-align: center; position: relative; z-index: 1; backdrop-filter: blur(6px);
}
h1 { margin: 0; color: #1F5D4C; font-size: 1.8rem; }
.sub { margin: 4px 0 24px; color: #5a6b62; }
form { text-align: left; }
label { display: block; font-size: .85rem; font-weight: 600; margin: 4px 0 6px; }
input {
  width: 100%; padding: 11px 12px; border: 1px solid #d7ddda; border-radius: 8px;
  font-size: 1rem; background: #fafbfa;
}
input:focus { outline: none; border-color: #1F5D4C; background: #fff; }
.subdomain-field { display: flex; align-items: center; gap: 6px; }
.subdomain-field input { flex: 1; }
.subdomain-field span { color: #5a6b62; font-size: .85rem; white-space: nowrap; }
button {
  width: 100%; margin-top: 18px; padding: 13px; border: none; border-radius: 8px;
  background: #1F5D4C; color: #fff; font-size: 1rem; font-weight: 600; cursor: pointer;
}
button:hover { background: #184a3d; }
.msg { min-height: 20px; margin-top: 10px; font-size: .85rem; color: #c0392b; text-align: center; }

.separator { display: flex; align-items: center; margin: 22px 0; color: #9aa8a1; font-size: .85rem; }
.separator::before, .separator::after { content: ''; flex: 1; border-top: 1px solid #e6e9e7; }
.separator span { padding: 0 12px; }

.btn-secondary {
  display: block; width: 100%; padding: 13px; border-radius: 8px; text-align: center;
  text-decoration: none; font-weight: 600; color: #1F5D4C; background: #eaf2ee; box-sizing: border-box;
}
.btn-secondary:hover { background: #dcece4; }
