:root {
  color-scheme:dark;
  --bg:#1f2026;
  --card:#292b32;
  --cyan:#5ae3e2;
  --orange:#c14302;
  --text:#f5f7f7;
  --muted:#aabcc4;
  font-family:'Segoe UI',Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
}
* {
  box-sizing:border-box;
}
body {
  margin: 0;
  min-height: 80vh;
  background: radial-gradient(ellipse at 16% 45%,#213e43 0,transparent 50%),#1f2026;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input {
  font:inherit;
}
button,a,input {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
}
button:disabled {
  cursor:not-allowed;
  opacity:.5;
}
button:focus-visible,a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset:5px;
}
input:focus {
  outline: 2px solid var(--cyan);
  outline-offset:2px;
  -webkit-transition: all 0.1s ease;
  -o-transition: all 0.1s ease;
  transition: all 0.1s ease;
}
[hidden] {
  display:none!important;
}
.topbar {
  max-width:1280px;
  padding:26px 36px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.wordmark {
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:800;
  letter-spacing:2px;
  font-size:20px;
}
.wordmark img {
  width:43px;
  height:43px;
  object-fit:contain;
}
.wordmark small {
  display:block;
  font-size:8px;
  letter-spacing:1.65px;
  color:var(--muted);
  font-weight:500;
  margin-top:5px;
}
.home-link {
  font-size:13px;
  color:var(--muted);
}
.home-link span {
  color:var(--cyan);
  margin-right:8px;
  font-size:19px;
}
.auth-shell {
  position: relative;
  max-width: 1208px;
  margin: 25px auto 15px;
  min-height: 738px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid #ffffff12;
  box-shadow: 0 30px 90px #0004;
  background: var(--card);
}
.welcome-panel {
  position:absolute;
  inset:0 auto 0 0;
  width:50%;
  background:linear-gradient(145deg,#75f0e3,#5ae3e2 50%,#28bdbd);
  color:#133138;
  border-radius:28px 130px 130px 28px;
  overflow:hidden;
  z-index:2;
  transition:transform .85s cubic-bezier(.68,-.1,.22,1.05),border-radius .85s;
  isolation:isolate;
}
.is-signup .welcome-panel {
  transform:translateX(100%);
  border-radius:130px 28px 28px 130px;
}
.panel-inner {
  padding:53px 48px 38px;
  height:100%;
  min-height:738px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  position:relative;
}
.eyebrow {
  font-size:10px;
  font-weight:800;
  letter-spacing:2.9px;
}
.logo-stage {
  margin:37px 0 24px;
  position:relative;
  display:grid;
  place-items:center;
  width:178px;
  height:178px;
  border-radius:50%;
  background:#18323814;
  border:1px solid #17444b20;
  box-shadow:0 0 0 18px #ffffff13,0 0 0 38px #ffffff09;
}
.logo-stage img {
  width:144px;
  height:144px;
  border-radius:28px;
  filter:drop-shadow(0 15px 15px #15404740);
}
.welcome-copy h1 {
  font-size:clamp(32px,3.3vw,46px);
  line-height:1.1;
  letter-spacing:-1.8px;
  margin: 0 0 15px;
  font-weight:800;
}
.welcome-copy h1 span {
  color:var(--orange);
}
.welcome-copy p {
  font-size:15px;
  line-height:1.8;
  margin:0;
  color:#234850;
}
.panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  margin-top: 20px;
  color: #244f53;
}
.status-dot {
  height:6px;
  width:6px;
  border-radius:50%;
  background:var(--orange);
}
.orb {
  position:absolute;
  border:1px solid #ffffff38;
  border-radius:50%;
  z-index:-1;
  pointer-events:none;
}
.orb-one {
  width: 510px;
  height: 510px;
  top: -360px;
  left: -165px;
  box-shadow: 0 0 0 30px #ffffff09,0 0 0 65px #ffffff07;
}
.orb-two {
  width:480px;
  height:480px;
  bottom:-365px;
  right:-120px;
  box-shadow:0 0 0 35px #ffffff09,0 0 0 70px #ffffff05;
}
.forms-side {
  width:50%;
  margin-left:50%;
  min-height:738px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:44px 62px;
  transition:transform .85s cubic-bezier(.68,-.1,.22,1.05);
}
.is-signup .forms-side {
  transform:translateX(-100%);
}
.auth-view {
  width:100%;
  max-width:410px;
  animation:appear .4s ease both;
}
.section-kicker {
  font-size:10px;
  letter-spacing:2px;
  font-weight:700;
  color:var(--cyan);
  margin-bottom:14px;
  text-transform: uppercase;
}
#verify-email {
  color:var(--cyan);
}
h2 {
  font-size:34px;
  line-height:1.14;
  letter-spacing:-1px;
  margin:0 0 12px;
}
h2:focus {
  outline:none;
}
.intro {
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
  margin:0 0 27px;
  overflow-wrap:anywhere;
}
.intro strong {
  color:var(--text);
  font-weight:500;
}
.social-buttons {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.social-buttons form {
  margin:0;
}
.social-button {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:46px;
  border-radius:10px;
  border:1px solid #ffffff21;
  background:#f8fafb;
  color:#283139;
  font-size:13px;
  font-weight:600;
  transition:transform .2s,background .2s;
}
.social-button:disabled {
  opacity:.65;
}
.social-button:hover:not(:disabled) {
  transform:translateY(-2px);
  background:#fff;
}
.social-button svg {
  width:20px;
  height:20px;
  flex-shrink:0;
}
.divider {
  display:flex;
  align-items:center;
  gap:12px;
  margin:25px 0;
  color:#8fa2aa;
  font-size:11px;
}
.divider:before,.divider:after {
  content:'';
  height:1px;
  background:#ffffff12;
  flex:1;
}
label {
  display:block;
  color:#d6dee2;
  font-size:12px;
  font-weight:600;
  margin:17px 0 9px;
}
input {
  width:100%;
  min-width:0;
  height:48px;
  background:#22242b;
  border:1px solid #ffffff17;
  border-radius:9px;
  color:var(--text);
  padding:0 14px;
  font-size:14px;
  transition:border-color .2s;
	
}
input::placeholder {
  color:#81909c;
}
input:-webkit-autofill {
  -webkit-text-fill-color:var(--text);
  box-shadow:0 0 0 1000px #22242b inset;
}
.password-wrap {
  position:relative;
}
.password-wrap input {
  padding-right:46px;
}
.reveal {
  position:absolute;
  right:4px;
  top:4px;
  bottom:4px;
  width:40px;
  border:0;
  background:transparent;
  color:#99a9b2;
  display:grid;
  place-items:center;
}
.reveal svg {
  width:19px;
  height:19px;
}
.form-tools {
  display:flex;
  justify-content:flex-end;
  margin:14px 0 24px;
}
.text-button {
  border:0;
  padding:0;
  background:transparent;
  color:var(--cyan);
  font-size:12px;
  line-height:1.5;
  font-weight:600;
}
.text-button:hover {
  text-decoration: none;
}
.text-space {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  text-align: center;
}
.button {
  max-width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--card);
  border-radius: 5px;
  background: var(--card);
  color: var(--cyan);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.button:hover {
  border: 1px solid var(--card);
  background: transparent;
  color: var(--card);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.primary {
  padding: 0.8rem 1rem;
  display: flex;
  text-align: center;
  color: var(--card);
  font-weight: 700;
  font-size: 1rem;
  background: var(--cyan);
  margin: 1.5rem auto 0 auto;
  border: 1px solid var(--cyan);
  border-radius: 5px;
  box-shadow: 0 5px 20px #5ae3e210;
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.primary:hover {
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.primary span {
  font-size:20px;
  font-weight:400;
}
.termes {
  color: var(--cyan);
}
.termes:hover {
  text-decoration: underline;
}
.form-tools+.primary {
  margin-top:0;
}
.switch-copy {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 15px 0 0;
  line-height: 1.8;
}
.switch-copy button {
  margin-left:4px;
}
.password-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.field-hint {
  font-size:11px;
  line-height:1.6;
  color:var(--muted);
  margin:9px 0 0;
}
.legal-consent {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
	width: 100%;
    margin: 20px 0 0 0;
}
.legal-consent input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex: 0 0 16px;
    margin: 1px 0 0 0;
    padding: 0;
    border: 1.5px solid #4fdfe3;
    border-radius: 4px;
    background-color: transparent;
    cursor: pointer;
    position: relative;
    -webkit-transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        -webkit-transform 0.2s ease,
        box-shadow 0.3s ease;
    -o-transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.3s ease;
}
.legal-consent input[type="checkbox"]:hover {
    border-color: #4fdfe3;
    -webkit-box-shadow: 0 0 0 3px rgba(79, 223, 227, 0.15);
    box-shadow: 0 0 0 3px rgba(79, 223, 227, 0.15);
}
.legal-consent input[type="checkbox"]:checked {
    background-color: #4fdfe3;
    border-color: #4fdfe3;
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}
.legal-consent input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #1f232b;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg) scale(1);
    -ms-transform: rotate(45deg) scale(1);
    transform: rotate(45deg) scale(1);
    -webkit-animation: checkbox-check 0.2s ease;
    animation: checkbox-check 0.2s ease;
}
@-webkit-keyframes checkbox-check {
    0% {
        opacity: 0;
        -webkit-transform: rotate(45deg) scale(0);
        transform: rotate(45deg) scale(0);
    }

    100% {
        opacity: 1;
        -webkit-transform: rotate(45deg) scale(1);
        transform: rotate(45deg) scale(1);
    }
}
@keyframes checkbox-check {
    0% {
        opacity: 0;
        -webkit-transform: rotate(45deg) scale(0);
        transform: rotate(45deg) scale(0);
    }

    100% {
        opacity: 1;
        -webkit-transform: rotate(45deg) scale(1);
        transform: rotate(45deg) scale(1);
    }
}
.legal-consent input[type="checkbox"]:focus {
    outline: none;
}
.legal-consent input[type="checkbox"]:focus-visible {
    outline: none;
    -webkit-box-shadow: 0 0 0 3px rgba(79, 223, 227, 0.25);
    box-shadow: 0 0 0 3px rgba(79, 223, 227, 0.25);
}
.micro-copy {
  font-size: 11px;
  font-weight: normal;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
  margin: 0;
}
.step-icon {
  width:56px;
  height:56px;
  border-radius:17px;
  background:#5ae3e213;
  color:var(--cyan);
  display:grid;
  place-items:center;
  font-size:27px;
  margin-bottom:26px;
  border:1px solid #5ae3e233;
}
.code-input {
  text-align:center;
  font-size:28px;
  letter-spacing:12px;
  height:68px;
  font-variant-numeric:tabular-nums;
  padding-left:26px;
}
.resend-form {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin:25px 0 15px;
}
.resend-form .field-hint {
  margin:0;
}
.back-button {
  display:block;
  margin:28px auto 0;
  padding:6px 0;
  color:var(--muted);
  border:0;
  background:none;
  font-size:12px;
}
.page-footer {
  position: absolute;
  display:flex;
  justify-content:space-between;
  color: var(--muted);
  font-size:10px;
  letter-spacing:.6px;
  bottom: 1.5rem;
}
.page-footer strong {
  color: var(--cyan);
}
.notice {
  position:fixed;
  z-index:10;
  top:20px;
  left:50%;
  transform:translateX(-50%);
  width:min(560px,calc(100% - 32px));
  padding:17px 45px 17px 20px;
  background:#173e3e;
  color:#e7ffff;
  border:1px solid #5ae3e26b;
  border-radius:12px;
  box-shadow:0 12px 40px #0008;
  font-size:13px;
  line-height:1.6;
  text-align:center;
}
.notice.error {
  background: #f16b27;
  color: #fff;
  border-color: #f16b27;
}
.notice button {
  position:absolute;
  right:10px;
  top:10px;
  border:0;
  background:none;
  color:inherit;
  font-size:20px;
}
.noscript {
  text-align:center;
  color:#ffb991;
}
.account-card {
  max-width:760px;
  margin:65px auto;
  padding:45px;
  border-radius:25px;
  background:var(--card);
  border:1px solid #ffffff14;
}
.account-head {
  display:flex;
  gap:20px;
  align-items:center;
  margin-bottom:30px;
}
.avatar {
  width:65px;
  height:65px;
  border-radius:20px;
  background:#5ae3e222;
  display:grid;
  place-items:center;
  font-size:25px;
  color:var(--cyan);
}
.account-card h2 {
  font-size:30px;
  overflow-wrap:anywhere;
}
.account-details {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:25px 0;
}
.detail-box {
  padding:20px;
  border:1px solid #ffffff15;
  border-radius:12px;
  overflow-wrap:anywhere;
}
.detail-box small {
  display:block;
  color:var(--muted);
  margin-bottom:9px;
}
.verified {
  color:var(--cyan);
}
.account-card h3 {
  font-size:17px;
  margin-top:32px;
}
.logout-form {
  margin-top:30px;
}
.account-card .primary {
  max-width:230px;
}
.account-card .intro {
  margin-bottom:20px;
}
.account-card .back-button {
  margin-left:0;
  text-align:left;
}
@keyframes appear {
  from {
    opacity:0;
    translate:0 10px;
  }
  to {
    opacity:1;
    translate:0 0;
  }
}
@media(min-width:1500px) {
  .auth-shell {
    margin-top: 25px;
  }
}
@media(max-width:1260px) {
  .auth-shell {
    margin:20px 26px;
  }
  .page-footer {
    margin-left:30px;
    margin-right:30px;
  }
  .forms-side {
    padding:42px;
  }
  .panel-inner {
    padding-left:30px;
    padding-right:30px;
  }
}
@media(max-width:900px) {
  .forms-side {
    padding:32px;
  }
  .panel-inner {
    padding-left:20px;
    padding-right:20px;
  }
  .welcome-copy h1 {
    font-size:34px;
  }
  .password-grid {
    grid-template-columns:1fr;
    gap:0;
  }
  .is-signup .forms-side {
    padding-top:35px;
    padding-bottom:35px;
  }
  .welcome-panel,.panel-inner,.forms-side {
    min-height:770px;
  }
}
@media(max-width:720px) {
  .topbar {
    padding:20px;
  }
  .wordmark {
    font-size:17px;
  }
  .wordmark small {
    font-size:6px;
  }
  .home-link {
    font-size:0;
  }
  .home-link span {
    font-size:24px;
  }
  .auth-shell {
    display:flex;
    flex-direction:column;
    margin:10px 16px 20px;
    border-radius:23px;
    min-height:0;
    overflow:hidden;
  }
  .welcome-panel {
    position:relative;
    width:100%;
    min-height:0;
    border-radius:0 0 50px 0;
    transform:none!important;
    transition:background .5s;
  }
  .is-signup .welcome-panel {
    border-radius:0 0 0 50px;
  }
  .panel-inner {
    min-height:0;
    padding:24px;
    display:grid;
    grid-template-columns:74px 1fr;
    text-align:left;
    gap:0 21px;
  }
  .eyebrow,.panel-foot {
    display:none;
  }
  .logo-stage {
    grid-row:1/3;
    width:74px;
    height:74px;
    margin:0;
    border:0;
    box-shadow:none;
    background:transparent;
  }
  .logo-stage img {
    width:74px;
    height:74px;
    border-radius:14px;
  }
  .welcome-copy h1 {
    font-size:24px;
    line-height:1.15;
    letter-spacing:-.6px;
    margin:0 0 8px;
  }
  .welcome-copy h1 br {
    display:none;
  }
  .welcome-copy p {
    font-size:11px;
    line-height:1.5;
  }
  .welcome-copy p br {
    display:none;
  }
  .forms-side {
    width:100%;
    margin:0;
    min-height:0;
    padding:32px 25px 35px;
    transform:none!important;
  }
  .auth-view {
    max-width:460px;
  }
  .password-grid {
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  h2 {
    font-size:29px;
  }
  .page-footer {
    font-size:8px;
    gap:10px;
    margin:20px;
  }
  .account-card {
    margin:25px 16px;
    padding:26px;
  }
  .account-details {
    grid-template-columns:1fr;
  }
  .account-head {
    gap:12px;
  }
  .account-card h2 {
    font-size:25px;
  }
  .avatar {
    flex-shrink:0;
  }
  .notice {
    top:12px;
  }
  .orb-one {
    left:-180px;
  }
  .orb-two {
    display:none;
  }
}
@media(max-width:380px) {
  .password-grid {
    grid-template-columns:1fr;
  }
  .forms-side {
    padding:28px 20px;
  }
  .wordmark small {
    letter-spacing:1px;
  }
  .social-button {
    font-size:12px;
  }
  .panel-inner {
    padding:20px;
    gap:14px;
  }
  .welcome-copy h1 {
    font-size:21px;
  }
  .code-input {
    letter-spacing:8px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

/* Aide et force du mot de passe : clavier, tactile et petits écrans. */
.password-field {
    min-width: 0;
}
.password-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 17px 0 9px;
}
.password-label-row label {
    margin: 0;
}
.password-info {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    padding: 0;
    border: 1px solid var(--cyan, #5ae3e2);
    border-radius: 50%;
    background: transparent;
    color: var(--cyan, #5ae3e2);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
}
.password-info:hover,
.password-info[aria-expanded="true"] {
    background: #5ae3e220;
}
.password-tooltip {
    position: relative;
    padding: 12px;
    margin: 0 0 12px;
    border: 1px solid #5ae3e260;
    border-radius: 10px;
    background: #17383e;
    color: #e5ffff;
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.password-tooltip::before {
    content: '';
    position: absolute;
    right: 8px;
    top: -5px;
    width: 8px;
    height: 8px;
    background: #17383e;
    border-left: 1px solid #5ae3e260;
    border-top: 1px solid #5ae3e260;
    transform: rotate(45deg);
}
.password-strength {
    margin-top: 9px;
    --strength-color: #8f9da8;
}
.password-strength-track {
    height: 5px;
    background: #ffffff18;
    border-radius: 8px;
    overflow: hidden;
}
.password-strength-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--strength-color);
    transition: width .2s ease, background-color .2s ease;
}
.password-strength[data-level="1"] { --strength-color: #ff9696; }
.password-strength[data-level="2"] { --strength-color: #f7c96b; }
.password-strength[data-level="3"] { --strength-color: #79dfb2; }
.password-strength[data-level="4"] { --strength-color: #5ae3e2; }
.password-strength[data-level="1"] .password-strength-fill { width: 25%; }
.password-strength[data-level="2"] .password-strength-fill { width: 50%; }
.password-strength[data-level="3"] .password-strength-fill { width: 75%; }
.password-strength[data-level="4"] .password-strength-fill { width: 100%; }
.password-strength-text,
.password-rules-status,
.password-match {
    font-size: 11px;
    line-height: 1.5;
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}
.password-strength-text { color: var(--strength-color); }
.password-rules-status[data-valid="false"],
.password-match[data-valid="false"] { color: #ffb1a8; }
.password-rules-status[data-valid="true"],
.password-match[data-valid="true"] { color: #8ae6bb; }
@media (prefers-reduced-motion: reduce) {
    .password-strength-fill { transition: none; }
}
/* La bulle se superpose au champ sans déplacer le formulaire. */
.password-field {
    position: relative;
    display: flow-root;
}
.password-tooltip {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 4;
    margin: 0;
    box-shadow: 0 8px 25px #0006;
}
/* Les messages ajoutés peuvent augmenter la hauteur du formulaire. */
.auth-shell .forms-side {
    flex-direction: column;
}
.auth-shell .page-footer {
    position: static;
    margin: 24px 0 0;
    justify-content: center;
    text-align: center;
    line-height: 1.6;
}
@media (max-width: 480px) {
    .auth-shell .password-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
