/* ============================================================
   css/register.css — Page de création de compte
   ============================================================ */

/* ── Layout enregistrement ─────────────────────────────────── */
.register-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  background:
    radial-gradient(ellipse 50% 60% at 15% 30%, rgba(201,168,76,.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 85% 70%, rgba(26,79,138,.07) 0%, transparent 70%),
    var(--bg-base);
}

/* Grille de fond */
.register-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.register-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  animation: fadeUp .5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* ── En-tête du formulaire ─────────────────────────────────── */
.register-header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.register-logo-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(201,168,76,.4));
}

.register-logo-placeholder {
  width: 90px;
  height: 90px;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  color: var(--gold-deep);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.register-org {
  font-family: var(--font-display);
  font-size: .88rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-main);
}

.register-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.register-subtitle {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Carte principale ──────────────────────────────────────── */
.register-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.register-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), var(--gold-main), var(--gold-deep), transparent);
}

/* ── Sections ──────────────────────────────────────────────── */
.form-section {
  margin-bottom: 2rem;
}

.form-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-main);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}

.form-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.form-section-title .section-num {
  width: 24px; height: 24px;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  color: var(--gold-deep);
  font-family: var(--font-body);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Indicateur force du mot de passe ──────────────────────── */
.password-strength {
  margin-top: .5rem;
  display: flex;
  gap: .3rem;
  align-items: center;
}

.strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: var(--border-subtle);
  transition: background var(--t-normal);
}
.strength-bar.active-1 { background: var(--danger-light); }
.strength-bar.active-2 { background: #e67e22; }
.strength-bar.active-3 { background: #f1c40f; }
.strength-bar.active-4 { background: var(--success-light); }

.strength-label {
  font-size: .72rem;
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}

/* ── Footer ────────────────────────────────────────────────── */
.register-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: .82rem;
  color: var(--text-muted);
}
.register-footer a { color: var(--gold-main); font-weight: 600; }

.register-legal {
  text-align: center;
  margin-top: 2rem;
  font-size: .7rem;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: .04em;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .register-card { padding: 1.5rem; }
  .register-title { font-size: 1.4rem; }
}
