/* ====================================================================
   Auth pages — Layout vertical (mini-header + bloc marque + bloc form)
   Motif 103g7 (2026-05-17). Pages : login, password-forgot, password-reset.
   ==================================================================== */

body.auth-modern-page {
  background: var(--v-cream-light, #f5f9f7);
  color: var(--v-text, #123840);
  min-height: 100vh;
  margin: 0;
}

/* Logo centre en haut du bloc vert (memes dimensions que la topbar vitrine
   publique : symbol 47px + textimg 24px sur desktop, version compacte
   sur mobile). display:flex + width:fit-content + margin:0 auto pour
   un centrage horizontal blinde. */
.auth-modern__logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: fit-content;
  margin: 0 auto 22px;
  text-decoration: none;
  color: #ffffff;
}
.auth-modern__logo-symbol {
  height: 54px;  /* +15% de 47px */
  width: auto;
  display: block;
  flex-shrink: 0;
}
.auth-modern__logo-text {
  height: 28px;  /* +15% de 24px */
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1); /* force le wordmark en blanc sur fond fonce */
}
@media (max-width: 720px) {
  .auth-modern__logo { gap: 14px; margin-bottom: 12px; }
  .auth-modern__logo-symbol { height: 40px; }  /* +15% de 35px */
  .auth-modern__logo-text { height: 21px; }   /* +15% de 18px */
}

/* ---- Layout principal : single column, 2 blocs empiles ---- */
.auth-modern {
  display: flex;
  flex-direction: column;
}

/* ---- BLOC 1 : Espace Plateforme (marque, compact, en haut de page) ---- */
.auth-modern__brand {
  position: relative;
  padding: 28px 32px 28px;
  background: linear-gradient(135deg, #0f4c5c 0%, #0a3742 100%);
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}
.auth-modern__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(820px 480px at 18% 30%, rgba(200, 165, 90, 0.10), transparent 55%),
    radial-gradient(640px 380px at 82% 80%, rgba(94, 186, 200, 0.10), transparent 60%);
  pointer-events: none;
}
.auth-modern__brand-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.auth-modern__brand .v-eyebrow {
  display: inline-block;
  color: rgba(200, 165, 90, 0.95);
  margin: 0;
}
/* Quand l'eyebrow est utilise comme titre de page (<h1>), override
   les styles serif/heavy heritage de .vitrine h1. */
.auth-modern__brand .auth-modern__pagetitle,
.vitrine .auth-modern__pagetitle {
  font-family: var(--v-font-sans, 'Inter', sans-serif) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  line-height: 1.4 !important;
  color: rgba(200, 165, 90, 0.95) !important;
  margin: 0 !important;
}
/* Selecteur double-classe pour battre la specificite de .vitrine h1
   qui force la couleur navy dans vitrine.css */
.auth-modern__brand .auth-modern__title,
.vitrine .auth-modern__title {
  font-family: var(--v-font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff !important;
  margin: 0;
  letter-spacing: -0.01em;
}
/* "Elysiom Finance" en MAJUSCULES dans le titre */
.auth-modern__title-brand {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.auth-modern__divider {
  width: 48px;
  height: 2px;
  background: var(--v-gold, rgba(200, 165, 90, 0.82));
  border: 0;
  margin: 12px auto 14px;
}
/* Idem pour le lead — .vitrine p l'ecrasait */
.auth-modern__brand .auth-modern__lead,
.vitrine .auth-modern__lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0 auto 18px;
  max-width: none;
  white-space: nowrap;
}
/* En dessous d'un certain seuil, la phrase ne tient plus sur une ligne :
   on autorise le wrap. */
@media (max-width: 960px) {
  .auth-modern__brand .auth-modern__lead,
  .vitrine .auth-modern__lead {
    white-space: normal;
    max-width: 560px;
  }
}

/* CTAs inscription dans le bloc vert */
.auth-modern__brand-ctas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}
.auth-modern__brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--v-font-sans, 'Inter', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.auth-modern__brand-cta--ghost {
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.auth-modern__brand-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}
.auth-modern__brand-cta--primary {
  color: var(--v-navy, #0f4c5c);
  background: var(--v-gold, rgba(200, 165, 90, 0.92));
  border: 1px solid var(--v-gold, rgba(200, 165, 90, 0.92));
}
.auth-modern__brand-cta--primary:hover {
  background: var(--v-gold-light, rgb(230, 210, 165));
  border-color: var(--v-gold-light, rgb(230, 210, 165));
}
.auth-modern__brand-cta:active { transform: translateY(1px); }

/* ---- BLOC 2 : Carte de connexion ---- */
.auth-modern__form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 24px 36px;
  background: var(--v-cream-light, #f5f9f7);
  flex: 1;
}

.auth-modern__form-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(18, 56, 64, 0.06);
  box-shadow: 0 14px 32px rgba(18, 56, 64, 0.09), 0 2px 8px rgba(18, 56, 64, 0.04);
  padding: 26px 36px 24px;
}

/* Override .vitrine h2 qui forcerait navy etc. */
.auth-modern__form-card .auth-modern__form-title,
.vitrine .auth-modern__form-title {
  font-family: var(--v-font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--v-navy, #0f4c5c);
  margin: 0 0 4px;
  letter-spacing: -0.005em;
  text-align: center;
}

.auth-modern__form-sub {
  font-size: 0.86rem;
  color: var(--v-text-muted, rgba(18, 56, 64, 0.66));
  margin: 0 0 18px;
  text-align: center;
}

/* ---- Form fields ---- */
.auth-modern__form-card .a2z-field,
.auth-modern__form-card label {
  display: block;
  margin: 0 0 12px;
}
.auth-modern__form-card .auth-field-mt { margin-top: 0; }

.auth-modern__form-card .auth-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  font-style: normal;
  color: var(--v-text, #123840);
  margin-bottom: 7px;
  letter-spacing: 0;
}

.auth-modern__form-card .a2z-input,
.auth-modern__form-card input[type="text"],
.auth-modern__form-card input[type="email"],
.auth-modern__form-card input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(18, 56, 64, 0.16);
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--v-text, #123840);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.auth-modern__form-card .a2z-input::placeholder,
.auth-modern__form-card input::placeholder {
  color: rgba(18, 56, 64, 0.38);
}

.auth-modern__form-card .a2z-input:focus,
.auth-modern__form-card input:focus {
  outline: none;
  border-color: var(--v-gold-dark, #a08448);
  box-shadow: 0 0 0 3px rgba(200, 165, 90, 0.18);
}

.auth-modern__form-card .a2z-pw-wrap {
  position: relative;
}
.auth-modern__form-card .a2z-pw-wrap input {
  padding-right: 44px;
}
.auth-modern__form-card .a2z-pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(18, 56, 64, 0.45);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  padding: 0;
}
.auth-modern__form-card .a2z-pw-toggle:hover {
  color: var(--v-navy, #0f4c5c);
  background: rgba(18, 56, 64, 0.05);
}
.auth-modern__form-card .a2z-pw-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-modern__form-card .auth-link-wrap {
  margin: -8px 0 0;
  text-align: right;
}
.auth-modern__form-card .auth-link {
  font-size: 0.85rem;
  color: var(--v-navy, #0f4c5c);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(15, 76, 92, 0.3);
  transition: color 0.15s, border-color 0.15s;
}
.auth-modern__form-card .auth-link:hover {
  color: var(--v-gold-dark, #a08448);
  border-color: currentColor;
}

.auth-modern__form-card .auth-status {
  margin: 16px 0 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--v-text-muted, rgba(18, 56, 64, 0.66));
}
.auth-modern__form-card .auth-status:empty { margin: 0; padding: 0; }
.auth-modern__form-card .auth-status--error {
  padding: 10px 14px;
  background: rgba(217, 75, 99, 0.08);
  color: #9b2334;
  border-radius: 8px;
  border-left: 3px solid #9b2334;
}
.auth-modern__form-card .auth-status--info {
  padding: 10px 14px;
  background: rgba(26, 127, 115, 0.06);
  color: var(--v-navy, #0f4c5c);
  border-radius: 8px;
  border-left: 3px solid var(--v-gold, rgba(200, 165, 90, 0.82));
}

.auth-modern__form-card .auth-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-modern__form-card .btn,
.auth-modern__form-card button[type="submit"] {
  width: 100%;
  padding: 11px 20px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}

.auth-modern__form-card .btn--primary,
.auth-modern__form-card button[type="submit"] {
  background: var(--v-navy, #0f4c5c);
  color: #ffffff;
}
.auth-modern__form-card .btn--primary:hover,
.auth-modern__form-card button[type="submit"]:hover {
  background: var(--v-navy-light, #1B5B6E);
}

.auth-modern__form-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 56, 64, 0.08);
  text-align: center;
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--v-text-muted, rgba(18, 56, 64, 0.66));
}
.auth-modern__form-footer a {
  color: var(--v-navy, #0f4c5c);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 76, 92, 0.3);
  transition: color 0.15s, border-color 0.15s;
}
.auth-modern__form-footer a:hover {
  color: var(--v-gold-dark, #a08448);
  border-color: currentColor;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .auth-modern__header {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .auth-modern__logo-text { height: 16px; }
  .auth-modern__top-link {
    padding: 8px 12px;
    font-size: 0.74rem;
  }
  .auth-modern__brand {
    padding: 48px 24px 44px;
  }
  .auth-modern__title { font-size: 1.7rem; }
  .auth-modern__lead { font-size: 0.96rem; }
  .auth-modern__form-panel { padding: 36px 16px 60px; }
  .auth-modern__form-card { padding: 32px 24px 28px; }
  .auth-modern__form-title { font-size: 1.55rem; }
}

@media (max-width: 480px) {
  .auth-modern__header {
    justify-content: center;
  }
  .auth-modern__top-nav {
    width: 100%;
    justify-content: center;
  }
  .auth-modern__form-card { border-radius: 12px; padding: 28px 20px 24px; }
}

/* ====================================================================
   Variante --signup (motif 103g11 2026-05-22) — formulaires d'inscription
   3 etapes (CGP, investisseur PP) integres dans le layout auth-modern.
   La carte blanche doit etre PLUS LARGE que le login (520px) pour
   accommoder les grilles a 3 colonnes du wizard. La carte garde son
   propre fond/shadow defini dans cgp-signup.css / parcours-prospect-pp.css,
   on ajoute juste le centrage et la largeur max.
   ==================================================================== */
/* Motif 103g13 (2026-05-23) — Padding signup-panel reduit (avant 32/48 → 16/24)
   pour que le formulaire CGP tienne sur une seule page sans scroll vertical. */
.auth-modern--signup .auth-modern__form-panel {
  padding: 16px 24px 24px;
}
/* Motif 103g13 — Bloc vert "marque" compacte sur les pages signup, pour
   permettre au formulaire de tenir sur une seule page sans scroll. */
.auth-modern--signup .auth-modern__brand {
  padding: 14px 32px 16px;
}
.auth-modern--signup .auth-modern__logo {
  margin-bottom: 8px;
}
.auth-modern--signup .auth-modern__logo-symbol {
  height: 38px; /* Reduit de 54 a 38px sur les pages signup */
}
.auth-modern--signup .auth-modern__logo-text {
  height: 20px;
}
.auth-modern--signup .auth-modern__divider {
  margin: 8px auto 10px;
}
.auth-modern--signup .auth-modern__brand .auth-modern__lead {
  margin-bottom: 10px;
  font-size: 0.88rem;
}
.auth-modern--signup .auth-modern__brand-cta {
  padding: 8px 18px;
  font-size: 0.76rem;
}

.signup-form-card--auth-modern,
.ppwz-form-card--auth-modern {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(18, 56, 64, 0.06);
  box-shadow: 0 14px 32px rgba(18, 56, 64, 0.09), 0 2px 8px rgba(18, 56, 64, 0.04);
  overflow: hidden;
}
/* Override le coin du head pour matcher le border-radius parent */
.signup-form-card--auth-modern .signup-form-card__head {
  background: linear-gradient(90deg, #ffffff 0%, #f4f7f8 100%);
}
@media (max-width: 720px) {
  .auth-modern--signup .auth-modern__form-panel { padding: 24px 12px 40px; }
  .signup-form-card--auth-modern,
  .ppwz-form-card--auth-modern { border-radius: 12px; }
}
