/* GoServ Auth — plein écran (sans boîte) */

html[data-gs-auth="1"],
html[data-gs-auth="1"] body,
body.gs-auth-page {
  margin: 0 !important;
  min-height: 100vh !important;
  background: var(--gs-bg, #f5f8fc) !important;
  color: var(--gs-text, #0b1b33) !important;
  color-scheme: dark;
  font-family: "DM Sans", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
}

body.gs-auth-page::before {
  content: none !important;
}

.gs-auth {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  isolation: isolate;
  background: var(--gs-bg, #f5f8fc);
  color: var(--gs-text, #0b1b33);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow: hidden;
}

.gs-auth__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(rgb(var(--gs-line-rgb, 11 27 51) / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--gs-line-rgb, 11 27 51) / 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.gs-auth__backdrop::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  left: -280px;
  top: -380px;
  border-radius: 50%;
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.13);
  filter: blur(120px);
}

.gs-auth__backdrop span:first-child {
  position: absolute;
  width: 380px;
  height: 380px;
  right: -140px;
  bottom: -200px;
  border-radius: 50%;
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.08);
  filter: blur(100px);
}

.gs-auth__shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
  width: 100%;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.gs-auth__shell--wide {
  width: 100%;
  grid-template-columns: minmax(340px, 0.72fr) minmax(600px, 1.28fr);
}

.gs-auth__story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 96px);
  overflow: hidden;
  border-right: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.07);
  background: radial-gradient(circle at 18% 12%, rgb(var(--gs-accent-rgb, 47 124 255) / 0.18), transparent 34%),
    linear-gradient(145deg, var(--gs-surface, #ffffff) 0%, var(--gs-surface, #ffffff) 100%);
}

.gs-auth__story::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: 80px;
  border: 1px solid rgb(var(--gs-accent-rgb, 47 124 255) / 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgb(var(--gs-accent-rgb, 47 124 255) / 0.025),
    0 0 0 96px rgb(var(--gs-accent-rgb, 47 124 255) / 0.018);
}

.gs-auth__status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  margin-bottom: 42px;
  padding: 8px 12px;
  border: 1px solid rgba(61, 220, 132, 0.16);
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.055);
  color: #a9b2ad;
  font-size: 12px;
  font-weight: 600;
}

.gs-auth__status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.75);
}

.gs-auth__story-kicker {
  margin: 0 0 13px;
  color: var(--gs-accent, #1d6cf2);
  font: 700 12px/1 "Outfit", sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gs-auth__story h2 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0;
  color: var(--gs-text, #0b1b33);
  font: 700 clamp(40px, 4.8vw, 68px) / 1.02 "Outfit", sans-serif;
  letter-spacing: -0.045em;
}

.gs-auth__story h2 span {
  color: #7d828c;
}

.gs-auth__story-copy {
  max-width: 520px;
  margin: 25px 0 32px;
  color: #9da1aa;
  font-size: 15px;
  line-height: 1.75;
}

.gs-auth__features {
  display: grid;
  gap: 13px;
}

.gs-auth__features > div {
  display: flex;
  align-items: center;
  gap: 13px;
}

.gs-auth__features i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.08);
  border-radius: 12px;
  background: rgb(var(--gs-line-rgb, 11 27 51) / 0.035);
  color: var(--gs-accent, #1d6cf2);
}

.gs-auth__features span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gs-auth__features strong {
  color: #eceef2;
  font-size: 13px;
  font-weight: 650;
}

.gs-auth__features small {
  color: #747985;
  font-size: 11px;
}

.gs-auth__story-foot {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding-top: 35px;
  color: #656a74;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gs-auth__story-foot i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gs-accent, #1d6cf2);
}

.gs-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 5vw, 80px);
  background: rgb(var(--gs-surface-rgb, 255 255 255) / 0.96);
}

.gs-auth__shell--wide .gs-auth__panel {
  justify-content: flex-start;
}

.gs-auth__intro {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.gs-auth__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  margin: 0;
  border-radius: 14px;
  background: var(--gs-bg, #f5f8fc);
  border: 1px solid rgb(var(--gs-accent-rgb, 47 124 255) / 0.22);
  box-shadow: inset 0 0 0 1px rgb(var(--gs-line-rgb, 11 27 51) / 0.025);
}

.gs-auth__mark img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.gs-auth__eyebrow {
  margin: 0 0 3px;
  color: var(--gs-accent, #1d6cf2);
  font: 700 10px/1 "Outfit", sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gs-auth__intro h1 {
  margin: 0;
  color: var(--gs-text, #0b1b33);
  font: 800 28px/1.1 "Outfit", sans-serif;
  letter-spacing: -0.03em;
}

.gs-auth__subtitle {
  margin: 13px 0 28px;
  color: #858a94;
  font-size: 13px;
  line-height: 1.5;
}

.gs-auth__card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  max-width: 420px;
}

.gs-auth__shell--wide .gs-auth__card {
  max-width: none;
}

.gs-auth__secure {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 24px 0 0;
  max-width: 420px;
  font-size: 11px;
  color: #62666f;
}

.gs-auth__secure i {
  color: #3ddc84;
}

/* Form */
.gs-auth .ais-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gs-auth .ais-auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gs-auth .ais-auth-field > label,
.gs-auth .ais-auth-label-row label {
  color: #cfd2d8;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.gs-auth .ais-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.gs-auth .ais-auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.gs-auth .ais-auth-input-wrap > i:first-child {
  position: absolute;
  left: 14px;
  z-index: 1;
  color: var(--gs-text-muted, #6b7a94);
  font-size: 0.9rem;
  pointer-events: none;
}

.gs-auth .ais-auth-input-wrap input,
.gs-auth .ais-auth-field > input,
.gs-auth .ais-auth-field select,
.gs-auth .ais-auth-field textarea,
.gs-auth .ais-auth-code-input {
  width: 100%;
  height: 52px;
  padding: 0 14px 0 42px;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.085);
  border-radius: 13px;
  background: var(--gs-surface, #ffffff) !important;
  color: var(--gs-text, #0b1b33) !important;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.gs-auth .ais-auth-field > input,
.gs-auth .ais-auth-field select,
.gs-auth .ais-auth-field textarea {
  padding-left: 14px;
}

.gs-auth .ais-auth-code-input {
  padding-left: 42px;
  text-align: center;
  letter-spacing: 0.35em;
  font-weight: 700;
  font-size: 1.15rem;
}


.gs-auth .ais-auth-input-wrap input:hover {
  border-color: rgb(var(--gs-line-rgb, 11 27 51) / 0.15);
}

.gs-auth .ais-auth-input-wrap input:focus,
.gs-auth .ais-auth-field > input:focus,
.gs-auth .ais-auth-field select:focus,
.gs-auth .ais-auth-field textarea:focus,
.gs-auth .ais-auth-code-input:focus {
  border-color: rgb(var(--gs-accent-rgb, 47 124 255) / 0.7);
  box-shadow: 0 0 0 3px rgb(var(--gs-accent-rgb, 47 124 255) / 0.11);
}

.gs-auth .ais-auth-input-wrap input::placeholder,
.gs-auth .ais-auth-field > input::placeholder {
  color: #6b7280;
}

.gs-auth .ais-auth-toggle-pwd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--gs-text-muted, #6b7a94);
  cursor: pointer;
}

.gs-auth .ais-auth-toggle-pwd:hover {
  color: var(--gs-accent, #1d6cf2);
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.1);
}

.gs-auth .ais-auth-hint {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--gs-text-muted, #6b7a94);
}

.gs-auth .ais-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  height: 52px;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--gs-accent, #1d6cf2) 0%, #e85a0c 100%);
  color: #fff !important;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 14px 32px rgb(var(--gs-accent-rgb, 47 124 255) / 0.18);
  transition: transform 150ms ease, filter 150ms ease;
}

.gs-auth .ais-auth-submit:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.gs-auth .ais-auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.gs-auth .ais-auth-secondary {
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 44px;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--gs-text, #0b1b33);
  font-weight: 600;
  cursor: pointer;
}

.gs-auth .ais-auth-secondary:hover {
  border-color: rgb(var(--gs-accent-rgb, 47 124 255) / 0.45);
  color: var(--gs-accent, #1d6cf2);
}

.gs-auth .ais-auth-loading {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--gs-text-muted, #6b7a94);
}

.gs-auth .ais-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.gs-auth .ais-auth-alert--error {
  background: rgba(185, 28, 28, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.gs-auth .ais-auth-alert--success {
  background: rgba(6, 78, 59, 0.28);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #a7f3d0;
}

.gs-auth .ais-auth-footer,
.gs-auth .ais-auth-footer-links {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--gs-text-muted, #6b7a94);
}

.gs-auth .ais-auth-footer a,
.gs-auth .ais-auth-link,
.gs-auth .ais-auth-inline-link {
  color: var(--gs-accent, #1d6cf2) !important;
  font-weight: 700;
  text-decoration: none;
}

.gs-auth .ais-auth-footer a:hover,
.gs-auth .ais-auth-link:hover,
.gs-auth .ais-auth-inline-link:hover {
  text-decoration: underline;
}

.gs-auth .ais-auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gs-auth .ais-auth-terms {
  margin: 0;
  font-size: 12px;
  color: #858a94;
  line-height: 1.5;
  text-align: center;
}

.gs-auth .ais-auth-terms a {
  color: var(--gs-accent, #1d6cf2);
  font-weight: 600;
  text-decoration: none;
}

.gs-auth .ais-auth-terms a:hover {
  text-decoration: underline;
}

/* Country / dial select */
.gs-auth .ais-auth-cc {
  position: relative;
  width: 100%;
}

.gs-auth .ais-auth-cc-trigger {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gs-text, #0b1b33);
  background: var(--gs-surface, #ffffff);
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.085);
  border-radius: 13px;
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.gs-auth .ais-auth-cc-trigger:hover {
  border-color: rgb(var(--gs-line-rgb, 11 27 51) / 0.15);
}

.gs-auth .ais-auth-cc-trigger:focus,
.gs-auth .ais-auth-cc.is-open .ais-auth-cc-trigger {
  outline: none;
  border-color: rgb(var(--gs-accent-rgb, 47 124 255) / 0.7);
  box-shadow: 0 0 0 3px rgb(var(--gs-accent-rgb, 47 124 255) / 0.11);
}

.gs-auth .ais-auth-cc-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgb(var(--gs-line-rgb, 11 27 51) / 0.08);
}

.gs-auth .ais-auth-cc-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gs-auth .ais-auth-cc-dial {
  color: #cfd2d8;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.gs-auth .ais-auth-cc-caret {
  margin-left: auto;
  color: var(--gs-text-muted, #6b7a94);
  font-size: 12px;
  transition: transform 150ms ease;
}

.gs-auth .ais-auth-cc.is-open .ais-auth-cc-caret {
  transform: rotate(180deg);
}

.gs-auth .ais-auth-cc-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  max-height: 290px;
  overflow: hidden;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.1);
  border-radius: 13px;
  background: var(--gs-surface, #ffffff);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.gs-auth .ais-auth-cc-search {
  padding: 10px;
  border-bottom: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.08);
}

.gs-auth .ais-auth-cc-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.1);
  border-radius: 9px;
  background: var(--gs-surface, #ffffff);
  color: var(--gs-text, #0b1b33);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.gs-auth .ais-auth-cc-search input:focus {
  border-color: rgb(var(--gs-accent-rgb, 47 124 255) / 0.7);
}

.gs-auth .ais-auth-cc-list {
  overflow-y: auto;
  padding: 6px;
}

.gs-auth .ais-auth-cc-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gs-text, #0b1b33);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.gs-auth .ais-auth-cc-option:hover,
.gs-auth .ais-auth-cc-option.is-active {
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.12);
}

.gs-auth .ais-auth-cc-option .ais-auth-cc-name {
  flex: 1;
}

.gs-auth .ais-auth-cc-option .ais-auth-cc-dial {
  color: #858a94;
}

.gs-auth .ais-auth-cc-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #858a94;
}

/* Phone: dial + number side by side */
.gs-auth .ais-auth-phone {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.gs-auth .ais-auth-phone .ais-auth-cc {
  flex: 0 0 128px;
  width: 128px;
}

.gs-auth .ais-auth-phone .ais-auth-cc-menu {
  width: 300px;
  right: auto;
}

.gs-auth .ais-auth-phone .ais-auth-input-wrap {
  flex: 1;
  min-width: 0;
}

/* Address autocomplete */
.gs-auth .ais-auth-ac {
  position: relative;
}

.gs-auth .ais-auth-ac-spin {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--gs-text-muted, #6b7a94);
}

.gs-auth .ais-auth-ac-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.1);
  border-radius: 13px;
  background: var(--gs-surface, #ffffff);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.gs-auth .ais-auth-ac-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gs-text, #0b1b33);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  line-height: 1.35;
}

.gs-auth .ais-auth-ac-option i {
  color: var(--gs-accent, #1d6cf2);
  font-size: 12px;
  flex-shrink: 0;
}

.gs-auth .ais-auth-ac-option:hover {
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.12);
}

.gs-auth .ais-auth-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.gs-auth .ais-auth-fieldset legend {
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gs-text, #0b1b33);
}

.gs-auth .ais-auth-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.gs-auth .ais-auth-segment__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.1);
  background: var(--gs-bg, #f5f8fc);
  color: var(--gs-text-muted, #6b7a94);
  font-weight: 600;
  cursor: pointer;
}

.gs-auth .ais-auth-segment__btn.is-active {
  border-color: rgb(var(--gs-accent-rgb, 47 124 255) / 0.55);
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.12);
  color: var(--gs-accent, #1d6cf2);
}

.gs-auth .ais-auth-segment__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.gs-auth .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gs-auth input:-webkit-autofill,
.gs-auth input:-webkit-autofill:hover,
.gs-auth input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #0b0c0f inset !important;
  -webkit-text-fill-color: var(--gs-text, #0b1b33) !important;
  caret-color: var(--gs-text, #0b1b33);
}

@media (max-width: 900px) {
  .gs-auth__shell,
  .gs-auth__shell--wide {
    grid-template-columns: 1fr;
  }

  .gs-auth__story {
    display: none;
  }

  .gs-auth__panel {
    min-height: 100svh;
    padding: 40px 28px;
  }

  .gs-auth__card,
  .gs-auth__secure {
    max-width: none;
  }

  .gs-auth .ais-auth-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .gs-auth__panel {
    padding: 32px 20px;
  }

  .gs-auth__intro h1 {
    font-size: 24px;
  }

  .gs-auth .ais-auth-phone {
    flex-direction: column;
  }

  .gs-auth .ais-auth-phone .ais-auth-cc,
  .gs-auth .ais-auth-phone .ais-auth-input-wrap {
    flex: 1 1 auto;
    width: 100%;
  }

  .gs-auth .ais-auth-phone .ais-auth-cc-menu {
    width: 100%;
  }
}

/* =====================================================================
   Thème spatial GoServ (accueil, FiveM, commande) : bleu nuit + orange.
   Couche finale pour connexion, inscription, 2FA, mot de passe oublié.
   ===================================================================== */

html:root:root[data-gs-auth="1"],
html:root:root[data-gs-auth="1"] body,
html:root:root body.gs-auth-page {
  background: radial-gradient(1px 1px at 8% 12%, rgb(var(--gs-text-rgb, 11 27 51) / 0.6), transparent 60%),
    radial-gradient(1px 1px at 61% 44%, rgb(var(--gs-text-rgb, 11 27 51) / 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 77% 16%, rgba(255, 220, 190, 0.7), transparent 60%),
    radial-gradient(1px 1px at 33% 86%, rgb(var(--gs-text-rgb, 11 27 51) / 0.4), transparent 60%),
    radial-gradient(1px 1px at 91% 72%, rgb(var(--gs-text-rgb, 11 27 51) / 0.5), transparent 60%),
    var(--gs-bg, #f5f8fc) !important;
  background-size: 640px 560px, 640px 560px, 640px 560px, 640px 560px, 640px 560px, auto !important;
}

html:root:root .gs-auth {
  background: transparent !important;
}

/* ---------- Décor : planète orange à anneau dans le panneau gauche ---------- */

html:root:root .gs-auth__backdrop {
  background: none !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

html:root:root .gs-auth__backdrop::before {
  content: none !important;
}

/* Planète accrochée au panneau gauche: en haut à droite, coupée par le bord,
   jamais sous le texte (z-index 0, contenu au-dessus). */
html:root:root .gs-auth__story {
  position: relative !important;
  overflow: hidden !important;
}

html:root:root .gs-auth__story > * {
  position: relative;
  z-index: 1;
}

html:root:root .gs-auth__story::after {
  content: "" !important;
  position: absolute !important;
  z-index: 0 !important;
  top: -70px !important;
  right: -70px !important;
  left: auto !important;
  bottom: auto !important;
  width: 220px !important;
  height: 220px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 32% 28%, var(--gs-accent-pale, #6f9bea) 0%, var(--gs-accent-hover, #1559d1) 28%, var(--gs-accent, #1d6cf2) 55%, var(--gs-accent-strong, #0f47ad) 88%, var(--gs-surface, #ffffff) 100%) !important;
  box-shadow: inset -24px -30px 50px rgba(0, 0, 0, 0.45), 0 0 80px rgb(var(--gs-accent-rgb, 47 124 255) / 0.28) !important;
  opacity: 0.85;
  pointer-events: none;
}

html:root:root .gs-auth__backdrop span:first-child {
  display: none !important;
  left: 330px !important;
  right: auto !important;
  top: auto !important;
  bottom: 110px !important;
  width: 200px !important;
  height: 200px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 32% 28%, var(--gs-accent-pale, #6f9bea) 0%, var(--gs-accent-hover, #1559d1) 28%, var(--gs-accent, #1d6cf2) 55%, var(--gs-accent-strong, #0f47ad) 88%, var(--gs-surface, #ffffff) 100%) !important;
  box-shadow: inset -24px -30px 50px rgba(0, 0, 0, 0.45), 0 0 90px rgb(var(--gs-accent-rgb, 47 124 255) / 0.3) !important;
  opacity: 0.9 !important;
  filter: none !important;
}

/* Anneau de la planète */
html:root:root .gs-auth__backdrop span:first-child::after {
  content: "";
  position: absolute;
  left: -36%;
  right: -36%;
  top: 40%;
  height: 22%;
  border-radius: 50%;
  border: 3px solid rgba(255, 176, 136, 0.55);
  transform: rotate(-14deg);
}

html:root:root .gs-auth__backdrop span:last-child {
  border: 0 !important;
  background: radial-gradient(circle, rgb(var(--gs-accent-rgb, 47 124 255) / 0.12) 0%, transparent 65%) !important;
}

/* ---------- Panneau de gauche ---------- */

html:root:root .gs-auth__story {
  background: transparent !important;
  border-right: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.12) !important;
}

html:root:root .gs-auth__story h2 {
  color: var(--gs-text, #0b1b33) !important;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif !important;
  font-weight: 900 !important;
}

html:root:root .gs-auth__story h2 span {
  color: var(--gs-accent, #1d6cf2) !important;
}

html:root:root .gs-auth__story-kicker,
html:root:root .gs-auth__eyebrow {
  color: var(--gs-accent-pale, #6f9bea) !important;
}

html:root:root .gs-auth__story-copy {
  color: var(--gs-text-body, #3b4a63) !important;
}

/* Avantages : cartes discrètes, icône orange sur fond orange léger */
html:root:root .gs-auth__features {
  gap: 10px !important;
  max-width: 420px;
}

html:root:root .gs-auth__features > div {
  gap: 14px !important;
  padding: 12px 14px;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgb(var(--gs-surface-2-rgb, 22 35 58) / 0.85), rgb(var(--gs-surface-rgb, 17 28 48) / 0.55));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

html:root:root .gs-auth__features > div:hover {
  border-color: rgb(var(--gs-accent-rgb, 47 124 255) / 0.45);
  transform: translateX(3px);
}

html:root:root .gs-auth__features i {
  display: grid !important;
  place-items: center;
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
  border: 1px solid rgb(var(--gs-accent-rgb, 47 124 255) / 0.35) !important;
  border-radius: 11px !important;
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.12) !important;
  color: var(--gs-accent-text, #1a5fd6) !important;
  font-size: 15px;
}

html:root:root .gs-auth__features strong {
  color: var(--gs-text, #0b1b33) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

@media (prefers-reduced-motion: reduce) {
  html:root:root .gs-auth__features > div {
    transition: none;
  }
}

html:root:root .gs-auth__features small,
html:root:root .gs-auth__story-foot span {
  color: var(--gs-text-body, #3b4a63) !important;
}

html:root:root .gs-auth__status {
  border: 1px solid rgba(61, 220, 132, 0.35) !important;
  background: rgba(61, 220, 132, 0.08) !important;
}

/* ---------- Panneau de droite: formulaire en carte ---------- */

html:root:root .gs-auth__panel {
  background: transparent !important;
}

html:root:root .gs-auth__intro h1 {
  color: var(--gs-text, #0b1b33) !important;
  font-family: "Outfit", "DM Sans", system-ui, sans-serif !important;
  font-weight: 900 !important;
}

html:root:root .gs-auth__mark {
  border: 1px solid rgb(var(--gs-accent-rgb, 47 124 255) / 0.45) !important;
  border-radius: 12px !important;
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.1) !important;
}

html:root:root .gs-auth__subtitle,
html:root:root .gs-auth__secure,
html:root:root .ais-auth-hint {
  color: var(--gs-text-body, #3b4a63) !important;
}

html:root:root .gs-auth__card {
  padding: clamp(1.3rem, 3vw, 1.8rem) !important;
  border: 1px solid rgb(var(--gs-line-rgb, 11 27 51) / 0.16) !important;
  border-radius: 18px !important;
  background: radial-gradient(320px 160px at 100% 0%, rgb(var(--gs-accent-rgb, 47 124 255) / 0.1), transparent 70%),
    rgb(var(--gs-surface-rgb, 17 28 48) / 0.96) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35) !important;
}

html:root:root .gs-auth label,
html:root:root .gs-auth .ais-auth-field > label,
html:root:root .gs-auth .form-label {
  color: var(--gs-text, #0b1b33) !important;
}

/* Sélecteurs pays / indicatif (inscription) */
html:root:root .gs-auth .ais-auth-cc-trigger,
html:root:root .gs-auth .ais-auth-cc-menu,
html:root:root .gs-auth .ais-auth-cc-search {
  border-color: rgb(var(--gs-line-rgb, 11 27 51) / 0.18) !important;
  background: var(--gs-bg, #f5f8fc) !important;
  color: var(--gs-text, #0b1b33) !important;
}

html:root:root .gs-auth .ais-auth-cc-menu {
  background: var(--gs-surface, #ffffff) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

html:root:root .gs-auth .ais-auth-cc-list li:hover,
html:root:root .gs-auth .ais-auth-cc-list button:hover {
  background: rgb(var(--gs-line-rgb, 11 27 51) / 0.12) !important;
}

/* Champs */
html:root:root .gs-auth input:not([type="checkbox"]):not([type="radio"]),
html:root:root .gs-auth select,
html:root:root .gs-auth textarea,
html:root:root .gs-auth .ais-auth-input-wrap {
  border-color: rgb(var(--gs-line-rgb, 11 27 51) / 0.18) !important;
  background-color: var(--gs-bg, #f5f8fc) !important;
  color: var(--gs-text, #0b1b33) !important;
}

html:root:root .gs-auth .ais-auth-input-wrap input {
  border: 0 !important;
  background: transparent !important;
}

html:root:root .gs-auth input::placeholder {
  color: #7d879b !important;
}

html:root:root .gs-auth .ais-auth-input-wrap:focus-within,
html:root:root .gs-auth input:focus,
html:root:root .gs-auth select:focus {
  border-color: var(--gs-accent, #1d6cf2) !important;
  box-shadow: 0 0 0 3px rgb(var(--gs-accent-rgb, 47 124 255) / 0.2) !important;
}

html:root:root .gs-auth .ais-auth-input-wrap i,
html:root:root .gs-auth .ais-auth-toggle-pwd {
  color: var(--gs-text-muted, #6b7a94) !important;
}

/* Bouton principal */
html:root:root .gs-auth .ais-auth-submit {
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--gs-accent, #1d6cf2) !important;
  background-image: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

html:root:root .gs-auth .ais-auth-submit:hover {
  background: var(--gs-accent-hover, #1559d1) !important;
}

html:root:root .gs-auth .ais-auth-link,
html:root:root .gs-auth .ais-auth-footer-links a {
  color: var(--gs-accent-text, #1a5fd6) !important;
}

/* Choix Particulier / Professionnel (inscription) */
html:root:root .gs-auth .ais-auth-segment__btn {
  border-color: rgb(var(--gs-line-rgb, 11 27 51) / 0.18) !important;
  background: var(--gs-bg, #f5f8fc) !important;
}

html:root:root .gs-auth .ais-auth-segment__btn.is-active {
  border-color: var(--gs-accent, #1d6cf2) !important;
  background: rgb(var(--gs-accent-rgb, 47 124 255) / 0.12) !important;
}

/* Alertes */
html:root:root .gs-auth .ais-auth-alert {
  border-radius: 10px !important;
}

/* Inscription (2 colonnes plus étroites à gauche) : planète plus petite */
html:root:root .gs-auth__shell--wide ~ .gs-auth__backdrop span:first-child,
html:root:root .gs-auth:has(.gs-auth__shell--wide) .gs-auth__backdrop span:first-child {
  left: 240px !important;
  width: 150px !important;
  height: 150px !important;
}

@media (max-width: 960px) {
  html:root:root .gs-auth__backdrop span:first-child {
    display: none !important;
  }
}
