.login-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--bg);
}

.login-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: calc(100svh - var(--header-height) - 100px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-art {
  display: none;
}

.login-orbit {
  position: absolute;
  top: 50%;
  left: calc(15% - 540px);
  width: 1080px;
  height: 1080px;
  transform: translateY(-50%);
  border: 10px solid var(--orange);
  border-radius: 50%;
  background: radial-gradient(ellipse at 76% 38%, rgba(247, 147, 26, .22), rgba(40, 28, 22, .88) 65%, rgba(7, 11, 24, .92));
  box-shadow: 0 0 34px rgba(247, 147, 26, .16);
}

.login-diagonal {
  position: absolute;
  top: 50%;
  left: -20%;
  width: 140%;
  height: 1px;
  transform: rotate(45deg);
  background: rgba(247, 147, 26, .22);
}

.login-card {
  width: min(386px, 100%);
  min-height: 379px;
  padding: 28px 37px 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: linear-gradient(112deg, rgba(20, 29, 51, .96), rgba(14, 20, 37, .94));
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(7px);
}

.login-card h1 {
  max-width: none;
  margin: 0 0 28px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

.login-form > input:not([type="checkbox"]),
.register-form input:not([type="checkbox"]) {
  width: 100%;
  height: 46px;
  padding: 0 19px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: none;
  color: var(--text);
  background: rgba(7, 11, 24, .62);
  font: inherit;
  font-size: 14px;
}

.login-form > input:not([type="checkbox"]) + .visually-hidden + input {
  margin-top: 26px;
}

.login-form > input::placeholder,
.register-form input::placeholder { color: var(--muted); opacity: 1; }
.login-form > input:focus,
.register-form input:focus { border-color: var(--orange); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.remember-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--orange);
}

.login-options a,
.register-prompt a {
  color: inherit;
  text-decoration: none;
}

.login-options a:hover,
.register-prompt a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.login-submit {
  width: 100%;
  height: 42px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: var(--on-orange);
  background: var(--orange);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.login-submit:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.auth-feedback {
  position: fixed;
  inset: 0;
  width: min(330px, calc(100vw - 32px));
  height: min(285px, calc(100svh - 32px));
  min-height: 225px;
  margin: auto;
  padding: 30px 24px;
  border: 1px solid #d8dadd;
  border-radius: 12px;
  color: #303238;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .2);
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.auth-feedback[open] { display: flex; }

.auth-feedback::backdrop { background: rgba(0, 0, 0, .66); }

.auth-feedback-icon {
  width: 81px;
  height: 81px;
  display: grid;
  flex: 0 0 81px;
  place-items: center;
  border: 7px solid #4ac47b;
  border-radius: 50%;
}

.auth-feedback-icon::after {
  content: "";
  width: 22.5px;
  height: 37.5px;
  margin-top: -7px;
  border-right: 7px solid #4ac47b;
  border-bottom: 7px solid #4ac47b;
  transform: rotate(45deg);
}

.auth-feedback-title {
  display: block;
  font-size: clamp(21px, 5.25vw, 31.5px);
  font-weight: 700;
  line-height: 1.2;
}

.auth-feedback-message {
  display: block;
  max-width: 460px;
  color: #62666b;
  font-size: clamp(12px, 2.8vw, 16.5px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.auth-feedback.is-error .auth-feedback-icon {
  border-color: #e35d5d;
}

.auth-feedback.is-error .auth-feedback-icon::after {
  content: "!";
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  color: #e35d5d;
  font-size: 46.5px;
  font-weight: 700;
  line-height: 1;
  transform: none;
}

.auth-feedback.is-error .auth-feedback-title { color: #b93636; }

@media (max-width: 480px) {
  .auth-feedback {
    width: min(255px, calc(100vw - 24px));
    height: min(255px, calc(100svh - 24px));
    min-height: 210px;
    padding: 24px 18px 19px;
  }
  .auth-feedback-icon {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-width: 5px;
  }
  .auth-feedback-icon::after {
    width: 19px;
    height: 30px;
    border-right-width: 5px;
    border-bottom-width: 5px;
  }
}

.verify-email-copy {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
}

.resend-code {
  display: block;
  margin: 14px auto 0;
  padding: 4px 8px;
  border: 0;
  color: var(--text-soft);
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}

.resend-code:hover { color: var(--orange); }
.resend-code:disabled { cursor: wait; opacity: .65; }

.auth-feedback:empty { display: none; }

.login-submit:disabled {
  cursor: wait;
  opacity: .7;
}

.register-prompt {
  margin: 15px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  text-align: center;
}

.register-prompt a { font-weight: 700; }

.register-card {
  width: min(680px, 100%);
  margin-block: 24px;
  padding: 36px 44px 34px;
}

.register-card h1 { margin-bottom: 28px; }

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

.register-field { min-width: 0; }

/* Case de consentement à la politique de confidentialité */
.register-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.register-consent input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--orange);
  cursor: pointer;
}

.register-consent label { cursor: pointer; }

.register-consent a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.register-consent a:hover { color: var(--orange-light); }
.register-field-wide,
.register-submit { grid-column: 1 / -1; }
.register-form .login-submit { margin-top: 2px; }

@media (max-width: 560px) {
  .register-card { padding: 30px 28px; }
  .register-form { grid-template-columns: 1fr; }
  .register-field-wide,
  .register-submit { grid-column: auto; }
}

@media (max-width: 480px) {
  .login-stage { padding: 20px; }
  .login-card { padding-inline: 28px; }
  .login-orbit {
    left: calc(10% - 540px);
    width: 980px;
    height: 980px;
  }
}
