/* ============================================================
   register_patient.css — dentikOo
   Calqué sur login.css · Split Dark Luxury
   Dépend de _var.css
   ============================================================ */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* ── ROOT ── */
.rg-root {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
}

/* ══════════════════════════════════════════════
   PANNEAU GAUCHE — SOMBRE (identique au login)
══════════════════════════════════════════════ */
.rg-aside {
  position: relative;
  background: linear-gradient(
    175deg,
    var(--navy-mid) 0%,
    var(--navy) 50%,
    var(--night) 100%
  );
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.rg-aside__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

.rg-aside__orb {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(20, 85, 192, 0.32) 0%,
    transparent 65%
  );
  top: -180px;
  right: -180px;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: rg-drift 18s ease-in-out infinite alternate;
}

@keyframes rg-drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(20px, 30px) scale(1.06);
  }
}

.rg-aside__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 52px 44px;
  height: 100%;
  justify-content: center;
}

/* ── Marque ── */
.rg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 44px;
  left: 44px;
}

.rg-brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(20, 85, 192, 0.9);
  animation: rg-pulse 2.4s infinite;
}

@keyframes rg-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(20, 85, 192, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(20, 85, 192, 0);
  }
}

.rg-brand__text {
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: -0.3px;
}

.rg-brand__text strong {
  font-weight: 900;
  color: #fff;
}

/* ── Titre ── */
.rg-aside__title {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -2.5px;
  line-height: 1.06;
  margin-bottom: 16px;
}

.rg-aside__title span {
  background: linear-gradient(135deg, var(--blue) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rg-aside__sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.85;
  max-width: 320px;
}

/* ── Stats ── */
.rg-stats {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 18px 24px;
}

.rg-stat {
  flex: 1;
  text-align: center;
}

.rg-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.8px;
  line-height: 1;
  margin-bottom: 4px;
}

.rg-stat span {
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.rg-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* ── Citation ── */
.rg-quote {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-lg);
  padding: 22px 20px;
}

.rg-quote > i {
  font-size: 28px;
  color: var(--blue);
  opacity: 0.7;
  display: block;
  margin-bottom: 10px;
  line-height: 1;
}

.rg-quote p {
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin-bottom: 16px;
}

.rg-quote__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rg-quote__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(20, 85, 192, 0.3);
  border: 1px solid rgba(20, 85, 192, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #7dd3fc;
  flex-shrink: 0;
}

.rg-quote__author strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2px;
}

.rg-quote__author span {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

/* ══════════════════════════════════════════════
   PANNEAU DROIT — FORMULAIRE
══════════════════════════════════════════════ */
.rg-main {
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.rg-main::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: radial-gradient(
    circle,
    rgba(20, 85, 192, 0.08) 1.5px,
    transparent 1.5px
  );
  background-size: 22px 22px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 90% 10%,
    black 0%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 90% 10%,
    black 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Topbar */
.rg-main__topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 52px;
  border-bottom: 1px solid var(--line);
  background: var(--snow);
  flex-shrink: 0;
}

.rg-main__topbar span {
  font-size: 13px;
  color: var(--faint);
  font-weight: 400;
}

.rg-main__topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  transition: gap var(--t) var(--spring);
}

.rg-main__topbar a:hover {
  gap: 10px;
}

/* Form wrap */
.rg-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 32px;
  position: relative;
  z-index: 1;
}

/* Titre */
.rg-form-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -2.5px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.rg-form-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Erreurs globales Symfony */
.rg-form .form-error-message,
.rg-form ul.form-errors {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.rg-form .form-error-message,
.rg-form ul.form-errors li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  margin-bottom: 6px;
}

/* ── Form layout ── */
.rg-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rg-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* Label */
.rg-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  transition: color var(--t);
}

.rg-label i {
  font-size: 13px;
}

.rg-field:focus-within .rg-label {
  color: var(--blue);
}

/* Input wrap */
.rg-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Input — reset complet pour inputs Symfony */
.rg-input,
.rg-input-wrap input[type="text"],
.rg-input-wrap input[type="email"],
.rg-input-wrap input[type="tel"],
.rg-input-wrap input[type="password"] {
  width: 100%;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  background: var(--snow);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  outline: none;
  transition: all var(--t) var(--ease);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.rg-input::placeholder,
.rg-input-wrap input::placeholder {
  color: var(--faint);
  font-weight: 300;
}

.rg-input:focus,
.rg-input-wrap input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(20, 85, 192, 0.09);
}

/* Barre de force mot de passe */
.rg-strength {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.rg-strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--line);
  transition: background 0.3s;
}

/* CGU */
.rg-cgu {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--body);
  line-height: 1.6;
  margin-top: -4px;
}

.rg-cgu input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.rg-cgu a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.rg-cgu a:hover {
  opacity: 0.7;
}

/* Bouton submit — identique au login */
.rg-submit {
  display: flex;
  align-items: stretch;
  width: 100%;
  font-family: "Poppins", sans-serif;
  border: none;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--t) var(--spring);
  box-shadow: 0 6px 24px rgba(20, 85, 192, 0.3);
  margin-top: 4px;
}

.rg-submit span:first-child {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, #1a60d4 100%);
  padding: 17px 24px;
  letter-spacing: 0.2px;
  transition: background var(--t);
}

.rg-submit__icon {
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.18);
  font-size: 19px;
  color: #fff;
  flex-shrink: 0;
  transition: all var(--t) var(--spring);
}

.rg-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(20, 85, 192, 0.45);
}

.rg-submit:hover span:first-child {
  background: linear-gradient(135deg, #1a60d4, #2563eb);
}
.rg-submit:hover .rg-submit__icon {
  background: rgba(0, 0, 0, 0.28);
  transform: translateX(4px);
}
.rg-submit:active {
  transform: scale(0.98);
}

/* Footer note */
.rg-form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  color: var(--faint);
  margin-top: 20px;
  text-align: center;
  line-height: 1.5;
}

.rg-form-footer .bi-shield-lock-fill {
  color: #22c55e;
  font-size: 13px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 960px) {
  .rg-root {
    grid-template-columns: 1fr;
  }

  .rg-aside {
    min-height: auto;
  }
  .rg-aside__inner {
    padding: 44px 28px 36px;
    gap: 24px;
    justify-content: flex-start;
  }

  .rg-brand {
    position: static;
    margin-bottom: 0;
  }
  .rg-quote {
    display: none;
  }
}

@media (max-width: 600px) {
  .rg-main__topbar {
    padding: 16px 20px;
  }
  .rg-form-wrap {
    padding: 36px 24px;
  }
  .rg-form-title {
    font-size: 30px;
    letter-spacing: -1.8px;
  }
  .rg-aside__inner {
    padding: 36px 20px;
  }
  .rg-row {
    grid-template-columns: 1fr;
  }
}
