/* ============================================================
   Zaloria Connect · Écran de connexion et d'invitation
   Mise en page « deux panneaux » : récit de marque à gauche,
   formulaire à droite. Couleurs et typographie de la charte
   Zaloria (navy #0a1a2f, bleu #1287c4, bleu clair #9edcf7).
   Feuille autonome, scopée sous .acc-page : aucun effet de bord
   sur le tableau de bord ni sur les autres écrans.
   ============================================================ */

.acc-page {
  --acc-navy: #0a1a2f;
  --acc-navy-deep: #071325;
  --acc-blue: #1287c4;
  --acc-blue-dark: #0b6b9e;
  --acc-sky: #9edcf7;
  --acc-ice: #d9edfb;
  --acc-ink: #101f35;
  --acc-muted: #55698a;
  --acc-line: #e3eaf4;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff;
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--acc-ink);
}
.acc-page * {
  box-sizing: border-box;
}

/* ---------------- Panneau de marque (gauche) ---------------- */
.acc-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 56px 34px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 8%, rgba(18, 135, 196, 0.22), rgba(18, 135, 196, 0) 46%),
    linear-gradient(158deg, #123052 0%, #0a1a2f 56%, #071325 100%);
}
/* Cercles concentriques, comme une onde qui se propage dans la salle */
.acc-visual::before,
.acc-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.acc-visual::before {
  width: 760px;
  height: 760px;
  right: -250px;
  top: -230px;
  border: 1px solid rgba(158, 220, 247, 0.14);
  box-shadow:
    0 0 0 90px rgba(158, 220, 247, 0.05),
    0 0 0 200px rgba(158, 220, 247, 0.035),
    0 0 0 330px rgba(158, 220, 247, 0.022);
}
.acc-visual::after {
  width: 520px;
  height: 520px;
  left: -200px;
  bottom: -240px;
  border: 1px solid rgba(158, 220, 247, 0.1);
  box-shadow:
    0 0 0 70px rgba(158, 220, 247, 0.04),
    0 0 0 150px rgba(158, 220, 247, 0.026);
}

.acc-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
  color: #fff;
}
.acc-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
}
.acc-logo span {
  display: block;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.9px;
  line-height: 1;
}
.acc-logo small {
  display: block;
  margin-top: 4px;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 3.4px;
  color: #93a9c6;
}

.acc-visual-body {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.acc-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #8fb6d6;
}
.acc-eyebrow > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc-sky);
  box-shadow: 0 0 0 4px rgba(158, 220, 247, 0.16);
  flex: none;
}
.acc-visual h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #fff;
}
.acc-visual h1 em {
  display: inline-block;
  font-style: normal;
  color: var(--acc-sky);
}
.acc-lead {
  margin: 0 0 30px;
  max-width: 440px;
  font-size: 15.5px;
  line-height: 1.62;
  color: #b7cce4;
}

/* Carte « une salle, toutes les langues » */
.acc-note {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 430px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(158, 220, 247, 0.22);
  background: rgba(158, 220, 247, 0.07);
}
.acc-note-badges {
  display: flex;
  flex: none;
}
.acc-note-badges span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #06213a;
  background: var(--acc-sky);
  border: 2px solid #123052;
  margin-left: -9px;
}
.acc-note-badges span:first-child {
  margin-left: 0;
  background: #eaf6ff;
}
.acc-note b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #eaf4ff;
  margin-bottom: 3px;
}
.acc-note small {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  color: #a8c2dc;
}

.acc-visual-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  color: #7d95b3;
}

/* ---------------- Formulaire (droite) ---------------- */
.acc-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: #fff;
  overflow-y: auto;
}
.acc-form-inner {
  width: 100%;
  max-width: 424px;
}
.acc-logo-m {
  display: none;
}
.acc-eyebrow-form {
  color: var(--acc-blue-dark);
  margin-bottom: 16px;
}
.acc-eyebrow-form > span {
  background: var(--acc-blue);
  box-shadow: 0 0 0 4px rgba(18, 135, 196, 0.16);
}
.acc-form h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.6vw, 33px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--acc-ink);
}
.acc-sub {
  margin: 0 0 26px;
  font-size: 13.8px;
  line-height: 1.62;
  color: var(--acc-muted);
}

/* Champs */
.acc-form form {
  display: block;
}
.acc-form form label {
  display: block;
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 800;
  color: #3d5372;
  letter-spacing: 0.1px;
}
.acc-form form label > .field,
.acc-form form label > .acc-field {
  margin-top: 7px;
}
.acc-field {
  position: relative;
  display: block;
}
.acc-field .f-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #8aa3c2;
  pointer-events: none;
}
.acc-form form input,
.acc-form form select {
  width: 100%;
  border: 1px solid #d5e2f0;
  border-radius: 10px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--acc-ink);
  background: #fbfdff;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.acc-form form .acc-field input {
  padding-left: 42px;
}
.acc-form form .acc-field input[name="password"] {
  padding-right: 92px;
}
.acc-form form input:focus,
.acc-form form select:focus {
  outline: none;
  border-color: var(--acc-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(18, 135, 196, 0.13);
}
.acc-form form input::placeholder {
  color: #9db0c9;
}
/* « Afficher » / « Masquer » à l'intérieur du champ mot de passe */
.acc-pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--acc-blue-dark);
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  letter-spacing: 0.1px;
}
.acc-pw-toggle:hover {
  background: #eef7fc;
}
.acc-pw-toggle .pw-on {
  display: inline;
}
.acc-pw-toggle .pw-off {
  display: none;
}
.acc-field.pw-visible .acc-pw-toggle .pw-on {
  display: none;
}
.acc-field.pw-visible .acc-pw-toggle .pw-off {
  display: inline;
}
/* Lien « Mot de passe oublié ? » sous le champ */
.acc-forgot {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 18px;
}
.acc-forgot .text-button {
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--acc-blue-dark);
  cursor: pointer;
  padding: 4px 2px;
}
.acc-forgot .text-button:hover {
  text-decoration: underline;
}

/* Bouton principal : libellé à gauche, flèche à droite */
.acc-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  padding: 15px 20px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.1px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(165deg, #16375c, #0a1a2f 62%, #071325);
  box-shadow: 0 2px 4px rgba(10, 26, 47, 0.12), 0 18px 32px -20px rgba(10, 26, 47, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.14s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.acc-submit:hover {
  background: linear-gradient(165deg, #0e6a9c, #0a5c88);
  box-shadow: 0 2px 6px rgba(10, 26, 47, 0.16), 0 20px 34px -18px rgba(10, 92, 136, 0.7);
}
.acc-submit:active {
  transform: translateY(1px);
}
.acc-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.acc-submit .icon {
  width: 19px;
  height: 19px;
  flex: none;
}

/* Inscription par code d'invitation */
.acc-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid #d5e2f0;
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #23456b;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s;
}
.acc-ghost:hover {
  border-color: var(--acc-blue);
  background: #f6fbfe;
}
.acc-ghost .icon {
  width: 17px;
  height: 17px;
  color: var(--acc-blue-dark);
}

.acc-links {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--acc-line);
}
.acc-links a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--acc-muted);
  text-decoration: none;
}
.acc-links a:hover {
  color: var(--acc-blue-dark);
  text-decoration: underline;
}
.acc-foot {
  margin: 22px 0 0;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
  color: #8095b3;
}
.acc-foot span {
  color: var(--acc-blue);
}

/* Consentement (inscription) */
.acc-form .consent-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--acc-muted);
  margin: 2px 0 20px;
}
.acc-form .consent-line input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex: none;
  accent-color: var(--acc-blue);
}
.acc-form .consent-line a {
  color: var(--acc-blue-dark);
  font-weight: 800;
  text-decoration: none;
}
.acc-form .consent-line a:hover {
  text-decoration: underline;
}

/* ---------------- Adaptations ---------------- */
@media (max-width: 1180px) {
  .acc-visual {
    padding: 32px 38px 28px;
  }
  .acc-form {
    padding: 40px 36px;
  }
}
@media (max-width: 900px) {
  .acc-page {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .acc-visual {
    padding: 24px 22px 26px;
    gap: 20px;
  }
  .acc-visual h1 {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 12px;
  }
  .acc-lead {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .acc-note {
    display: none;
  }
  .acc-visual-foot {
    font-size: 10.5px;
  }
  .acc-visual::before {
    width: 420px;
    height: 420px;
    right: -180px;
    top: -180px;
    box-shadow:
      0 0 0 60px rgba(158, 220, 247, 0.05),
      0 0 0 130px rgba(158, 220, 247, 0.03);
  }
  .acc-visual::after {
    display: none;
  }
  .acc-form {
    padding: 30px 22px 44px;
    align-items: flex-start;
  }
  .acc-form-inner {
    max-width: 460px;
    margin: 0 auto;
  }
  .acc-eyebrow-form {
    display: none;
  }
  .acc-form h2 {
    font-size: 24px;
  }
  .acc-sub {
    font-size: 13px;
    margin-bottom: 20px;
  }
}
@media (max-width: 420px) {
  .acc-visual {
    padding: 20px 18px 22px;
  }
  .acc-logo img {
    width: 36px;
    height: 36px;
  }
  .acc-logo span {
    font-size: 20px;
  }
  .acc-form {
    padding: 26px 18px 40px;
  }
  .acc-form form input,
  .acc-form form select {
    font-size: 16px; /* évite le zoom automatique iOS */
  }
}

@media (prefers-reduced-motion: reduce) {
  .acc-submit {
    transition: none;
  }
}

/* Le logo répété en haut du formulaire n'apparaît que sur téléphone,
   en version foncée sur fond blanc. */
.acc-logo-m {
  display: none;
}
@media (max-width: 900px) {
  .acc-logo-m {
    display: inline-flex;
    margin: 0 auto 18px;
    color: var(--acc-ink);
  }
  .acc-logo-m img {
    background: #eef5fb;
  }
  .acc-logo-m small {
    color: var(--acc-blue-dark);
  }
  .acc-form-inner {
    display: flex;
    flex-direction: column;
  }
}

/* ---------- Corrections après vérification en navigateur ---------- */
/* Le sélecteur de langue doit laisser la place à l'icône, comme les champs texte */
.acc-form form .acc-field select {
  padding-left: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6d8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  padding-right: 34px;
}
/* L'écran d'invitation a plus de champs : un peu plus compact */
.acc-form form label {
  margin-bottom: 14px;
}
#register-form .acc-submit {
  margin-top: 2px;
}
/* Sur téléphone, la partie sombre reste un bandeau : on va droit au formulaire */
@media (max-width: 900px) {
  .acc-logo-m {
    display: none !important;
  }
  .acc-visual {
    padding: 18px 20px 20px;
    gap: 14px;
  }
  .acc-visual h1 {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 6px;
  }
  .acc-lead {
    display: none;
  }
  .acc-eyebrow {
    margin-bottom: 10px;
    font-size: 9.5px;
    letter-spacing: 1.8px;
  }
  .acc-visual-foot {
    display: none;
  }
  .acc-form {
    padding: 26px 20px 40px;
  }
  .acc-form h2 {
    font-size: 23px;
  }
}
