.nova-auth-page {
  --auth-ink: #09183f;
  --auth-muted: #647391;
  --auth-blue: #2967f2;
  --auth-violet: #6d50f5;
  --auth-cyan: #22c7ed;
  --auth-line: #dbe6f7;
  --auth-panel: rgba(255, 255, 255, .88);
  margin: 0;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 8% 18%, rgba(34, 199, 237, .13), transparent 28rem),
    radial-gradient(circle at 92% 15%, rgba(109, 80, 245, .12), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f2f6ff 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nova-auth-page *,
.nova-auth-page *::before,
.nova-auth-page *::after {
  box-sizing: border-box;
}

.nova-auth-main {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 150px);
  padding: clamp(48px, 7vw, 92px) 24px;
  overflow: hidden;
}

.nova-auth-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .32;
  background-image:
    linear-gradient(rgba(45, 103, 242, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 103, 242, .08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 72%, transparent);
}

.nova-auth-main::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -130px;
  bottom: -190px;
  z-index: -1;
  border-radius: 50%;
  border: 58px solid rgba(41, 103, 242, .06);
  box-shadow: 0 0 0 58px rgba(109, 80, 245, .035);
}

.nova-auth-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  border: 1px solid rgba(188, 206, 236, .9);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 30px 80px rgba(36, 68, 135, .14);
  backdrop-filter: blur(18px);
}

.nova-auth-card {
  padding: clamp(34px, 5vw, 64px);
  background: rgba(255, 255, 255, .92);
}

.nova-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--auth-blue);
  font: 700 .76rem/1 "Poppins", sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nova-auth-kicker::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--auth-cyan), var(--auth-violet));
}

.nova-auth-heading h1 {
  margin: 0;
  max-width: 610px;
  color: var(--auth-ink);
  font: 700 clamp(2.15rem, 4vw, 3.55rem)/1.08 "Poppins", sans-serif;
  letter-spacing: -.055em;
}

.nova-auth-heading .sub {
  margin: 15px 0 34px;
  color: var(--auth-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.nova-auth-form {
  display: grid;
  gap: 19px;
}

.nova-auth-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.nova-auth-form .form-field {
  min-width: 0;
}

.nova-auth-form label {
  display: block;
  margin: 0 0 8px;
  color: #24365f;
  font-size: .84rem;
  font-weight: 700;
}

.nova-auth-form input,
.nova-auth-form select {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  color: var(--auth-ink);
  border: 1px solid #d8e2f2;
  border-radius: 15px;
  outline: none;
  background: #f9fbff;
  font: 500 .95rem/1 "Inter", sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.nova-auth-form input::placeholder {
  color: #9ba7bc;
}

.nova-auth-form input:focus,
.nova-auth-form select:focus {
  border-color: rgba(41, 103, 242, .68);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(41, 103, 242, .1);
}

.nova-auth-form .password-wrap {
  position: relative;
}

.nova-auth-form .password-wrap input {
  padding-right: 55px;
}

.nova-auth-form .toggle-password {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 40px;
  height: 40px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.nova-auth-form .hint,
.nova-auth-form .error,
.nova-auth-form .error-msg {
  display: block;
  margin-top: 7px;
  font-size: .8rem;
}

.nova-auth-form .hint {
  color: #8190aa;
}

.nova-auth-form .error,
.nova-auth-form .error-msg {
  color: #c93448;
}

.nova-auth-form .form-extra {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.nova-auth-form a {
  color: var(--auth-blue);
  font-weight: 700;
  text-decoration: none;
}

.nova-auth-form a:hover {
  text-decoration: underline;
}

.nova-auth-submit {
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(110deg, var(--auth-blue), var(--auth-violet));
  box-shadow: none;
  font: 700 .98rem/1 "Poppins", sans-serif;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nova-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.nova-auth-form .alt {
  margin: 2px 0 0;
  color: var(--auth-muted);
  text-align: center;
  font-size: .9rem;
}

.nova-auth-visual {
  position: relative;
  display: flex;
  min-height: 650px;
  padding: clamp(36px, 5vw, 62px);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(49, 213, 240, .3), transparent 34%),
    radial-gradient(circle at 15% 85%, rgba(125, 91, 255, .35), transparent 38%),
    linear-gradient(145deg, #07183e, #102a67 65%, #172d67);
}

/* Connexion : portail d'accès, volontairement différent des pages commerciales. */
.nova-auth-visual-login {
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 50% 35%, rgba(38, 198, 237, .18), transparent 19rem),
    radial-gradient(circle at 80% 10%, rgba(112, 79, 244, .13), transparent 22rem),
    linear-gradient(145deg, #f7fbff, #eaf2ff);
}

.nova-auth-visual-login::before {
  opacity: .5;
  background-image:
    radial-gradient(circle, rgba(41, 103, 242, .18) 1px, transparent 1.5px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at center, #000, transparent 74%);
}

.nova-auth-visual-login .nova-auth-status {
  color: #28709a;
  border-color: rgba(27, 146, 190, .18);
  background: rgba(255, 255, 255, .68);
}

.nova-access-portal {
  position: relative;
  width: min(390px, 100%);
  aspect-ratio: 1;
  margin: auto;
}

.nova-access-orbit {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(41, 103, 242, .17);
  border-radius: 50%;
}

.nova-access-orbit-one {
  animation: nova-orbit 22s linear infinite;
}

.nova-access-orbit-two {
  inset: 24%;
  border-style: dashed;
  border-color: rgba(109, 80, 245, .23);
  animation: nova-orbit 17s linear infinite reverse;
}

.nova-access-orbit::before,
.nova-access-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2dc9ec;
  box-shadow: 0 0 0 7px rgba(45, 201, 236, .12);
}

.nova-access-orbit::before {
  top: 12%;
  left: 14%;
}

.nova-access-orbit::after {
  right: 9%;
  bottom: 17%;
  background: #7555f4;
  box-shadow: 0 0 0 7px rgba(117, 85, 244, .11);
}

@keyframes nova-orbit {
  to { transform: rotate(360deg); }
}

.nova-access-core {
  position: absolute;
  inset: 31%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid rgba(41, 103, 242, .2);
  border-radius: 34%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 22px 55px rgba(50, 93, 164, .17);
  transform: rotate(6deg);
}

.nova-access-core > * {
  transform: rotate(-6deg);
}

.nova-access-core b {
  color: var(--auth-ink);
  font: 700 1.45rem/1 "Poppins", sans-serif;
}

.nova-access-core small {
  margin-top: 6px;
  color: #73829d;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.nova-access-lock {
  position: relative;
  width: 29px;
  height: 25px;
  margin: 0 auto 14px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--auth-blue), var(--auth-violet));
}

.nova-access-lock::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 16px;
  left: 6px;
  top: -10px;
  border: 4px solid var(--auth-blue);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.nova-access-node {
  position: absolute;
  z-index: 2;
  padding: 9px 13px;
  color: #51627f;
  border: 1px solid #d9e5f5;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 24px rgba(43, 77, 139, .09);
  font-size: .7rem;
  font-weight: 700;
}

.node-project { top: 18%; right: 2%; }
.node-docs { bottom: 16%; left: 0; }
.node-support { right: 3%; bottom: 21%; }

.nova-access-message {
  padding-top: 6px;
  text-align: center;
}

.nova-access-message > span,
.nova-profile-caption > span {
  color: var(--auth-blue);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
}

.nova-access-message h2,
.nova-profile-caption h2 {
  margin: 10px auto 8px;
  color: var(--auth-ink);
  font: 700 clamp(1.5rem, 2.7vw, 2.25rem)/1.15 "Poppins", sans-serif;
}

.nova-access-message p {
  margin: 0 auto;
  color: var(--auth-muted);
  line-height: 1.6;
}

/* Inscription : carte de création de profil, indépendante du portail de connexion. */
.nova-auth-visual-register {
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 85% 10%, rgba(45, 202, 237, .22), transparent 22rem),
    linear-gradient(150deg, #f0f6ff, #edeaff);
}

.nova-auth-visual-register::before {
  opacity: .22;
  background-image:
    linear-gradient(135deg, rgba(41, 103, 242, .22) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(150deg, #000, transparent 78%);
}

.nova-profile-stage {
  position: relative;
  margin: auto 0;
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 28px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 28px 70px rgba(59, 76, 150, .15);
  backdrop-filter: blur(15px);
  transform: rotate(-1.5deg);
}

.nova-profile-stage::after {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  z-index: -1;
  border: 1px solid rgba(104, 81, 240, .16);
  border-radius: inherit;
}

.nova-profile-topline {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfe7f5;
  color: #6b7b97;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.nova-profile-topline i {
  color: var(--auth-blue);
  font-style: normal;
}

.nova-profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 0;
}

.nova-profile-avatar {
  display: grid;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 21px;
  background: linear-gradient(145deg, #2ec8ee, #7151f3);
}

.nova-profile-avatar span {
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 42% 42%;
  background: #fff;
  box-shadow: 0 16px 0 7px #fff;
}

.nova-profile-identity small,
.nova-profile-identity strong {
  display: block;
}

.nova-profile-identity small {
  margin-bottom: 4px;
  color: #75849e;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.nova-profile-identity strong {
  color: var(--auth-ink);
  font: 700 1.08rem/1.25 "Poppins", sans-serif;
}

.nova-profile-progress {
  display: grid;
  gap: 10px;
}

.nova-profile-progress > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e0e8f5;
  border-radius: 14px;
  background: rgba(248,251,255,.85);
}

.nova-profile-progress > div.is-current {
  border-color: rgba(41, 103, 242, .28);
  background: #fff;
}

.nova-profile-progress b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #8290a8;
  border-radius: 11px;
  background: #edf2fa;
  font-size: .72rem;
}

.nova-profile-progress .is-current b {
  color: #fff;
  background: linear-gradient(145deg, var(--auth-blue), var(--auth-violet));
}

.nova-profile-progress strong,
.nova-profile-progress small {
  display: block;
}

.nova-profile-progress strong {
  color: #27395f;
  font-size: .8rem;
}

.nova-profile-progress small {
  margin-top: 2px;
  color: #8290a8;
  font-size: .68rem;
}

.nova-profile-caption {
  padding-top: 28px;
  text-align: left;
}

.nova-profile-caption h2 {
  margin-left: 0;
  max-width: 440px;
}

.nova-auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .23;
  background-image:
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, #000, transparent 82%);
}

.nova-auth-visual-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  flex-direction: column;
}

.nova-auth-status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dcecff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nova-auth-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ee6ad;
  box-shadow: 0 0 0 6px rgba(62, 230, 173, .12), 0 0 20px #3ee6ad;
}

.nova-auth-visual h2 {
  max-width: 440px;
  margin: 42px 0 16px;
  color: #fff;
  font: 700 clamp(2rem, 3.4vw, 3.25rem)/1.08 "Poppins", sans-serif;
  letter-spacing: -.05em;
}

.nova-auth-visual > div p,
.nova-auth-visual-copy {
  max-width: 440px;
  margin: 0;
  color: #b8c8eb;
  font-size: .98rem;
  line-height: 1.75;
}

.nova-auth-dashboard {
  position: relative;
  margin-top: auto;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(7, 18, 53, .48);
  box-shadow: 0 24px 50px rgba(0,0,0,.18);
  backdrop-filter: blur(13px);
}

.nova-auth-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
  color: #fff;
  font-size: .87rem;
  font-weight: 700;
}

.nova-auth-dashboard-head span:last-child {
  color: #53e6ba;
  font-size: .7rem;
  text-transform: uppercase;
}

.nova-auth-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.nova-auth-dashboard-grid div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 15px;
  background: rgba(255,255,255,.07);
}

.nova-auth-dashboard-grid b,
.nova-auth-dashboard-grid small {
  display: block;
}

.nova-auth-dashboard-grid b {
  margin-bottom: 9px;
  color: #fff;
  font-size: 1.12rem;
}

.nova-auth-dashboard-grid small {
  color: #9fb1d8;
  line-height: 1.35;
}

.nova-auth-steps {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.nova-auth-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  background: rgba(255,255,255,.075);
}

.nova-auth-step b {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #2ec9ef, #7252f5);
}

.nova-auth-step strong,
.nova-auth-step small {
  display: block;
}

.nova-auth-step strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: .9rem;
}

.nova-auth-step small {
  color: #9fb1d8;
  line-height: 1.4;
}

.nova-captcha-wrap {
  padding: 15px;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: #f8faff;
  overflow: hidden;
}

.nova-auth-page .modal-check {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(3, 10, 31, .62);
  backdrop-filter: blur(8px);
}

.nova-auth-page .modal-check.show {
  display: grid;
}

.nova-auth-page .modal-check .box {
  width: min(390px, 100%);
  padding: 28px;
  color: var(--auth-ink);
  border: 1px solid var(--auth-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(7, 23, 61, .3);
  text-align: center;
}

.nova-auth-page .modal-title {
  margin: 0 0 18px;
  font: 700 1.12rem/1.2 "Poppins", sans-serif;
}

@media (max-width: 920px) {
  .nova-auth-main {
    padding: 34px 18px 55px;
  }

  .nova-auth-shell {
    grid-template-columns: 1fr;
    max-width: 680px;
    border-radius: 26px;
  }

  .nova-auth-visual {
    min-height: 450px;
  }

  .nova-auth-register .nova-auth-visual {
    min-height: 510px;
  }
}

@media (max-width: 620px) {
  .nova-auth-main {
    padding: 22px 12px 42px;
  }

  .nova-auth-shell {
    border-radius: 22px;
  }

  .nova-auth-card,
  .nova-auth-visual {
    padding: 28px 20px;
  }

  .nova-auth-form .row {
    grid-template-columns: 1fr;
  }

  .nova-auth-heading h1 {
    font-size: 2.1rem;
  }

  .nova-auth-visual {
    min-height: 420px;
  }

  .nova-auth-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .nova-auth-dashboard-grid div {
    min-height: auto;
  }

  .nova-captcha-wrap {
    padding: 11px 5px;
  }

  .nova-captcha-wrap .g-recaptcha {
    transform: scale(.89);
    transform-origin: left center;
  }
}
