.auth-scroll {
  overflow-y: auto;
}

.auth-page {
  width: min(1180px, calc(100% - 40px));
  min-height: 100%;
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  overflow: hidden;
  border: 1px solid rgba(111, 203, 244, 0.32);
  border-radius: 18px;
  background: rgba(0, 31, 49, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.auth-form-panel {
  padding: 36px 42px;
}

.auth-eyebrow {
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a8e84f;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-form-panel h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}

.auth-intro {
  margin: 12px 0 24px;
  color: #b8cbd5;
  font-size: 16px;
  line-height: 1.55;
}

.auth-alert,
.auth-success {
  margin: 0 0 20px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 9px;
  font-size: 15px;
}

.auth-alert {
  border: 1px solid rgba(255, 130, 130, 0.55);
  background: rgba(120, 25, 25, 0.25);
  color: #ffd1d1;
}

.auth-success {
  border: 1px solid rgba(168, 232, 79, 0.5);
  background: rgba(76, 120, 25, 0.22);
  color: #dfffb2;
}

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

.auth-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 7px;
  color: #eef8fc;
  font-size: 15px;
}

.auth-field > span {
  font-weight: 700;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(126, 192, 222, 0.4);
  border-radius: 8px;
  outline: none;
  color: #fff;
  background: rgba(0, 20, 32, 0.72);
  font-size: 16px;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.auth-field input:focus {
  border-color: #72d0ff;
  background: rgba(0, 31, 49, 0.92);
  box-shadow: 0 0 0 3px rgba(56, 196, 255, 0.12);
}

.auth-field small {
  color: #8faeba;
  font-size: 14px;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #c6d8e0;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}

.auth-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #82d450;
}

.auth-consent a,
.auth-switch a {
  color: #a8e84f;
}

.auth-submit {
  min-height: 50px;
  border: 1px solid rgba(210, 255, 128, 0.58);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff;
  background: linear-gradient(
    120deg,
    #00a990 0%,
    #75c84a 68%,
    #a8db5b 100%
  );
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.auth-submit:hover {
  background: linear-gradient(
    120deg,
    #00b49b 0%,
    #83d450 66%,
    #b7e767 100%
  );
}

.auth-switch {
  margin: 20px 0 0;
  text-align: center;
  color: #a9bec8;
  font-size: 15px;
}

.auth-benefits {
  padding: 42px 38px;
  border-left: 1px solid rgba(111, 203, 244, 0.22);
  background: linear-gradient(
    145deg,
    rgba(0, 77, 116, 0.58),
    rgba(0, 31, 49, 0.78)
  );
}

.auth-benefits-kicker {
  color: #75d6ff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-benefits h2 {
  margin: 9px 0 28px;
  font-size: 24px;
  line-height: 1.3;
}

.auth-benefit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid rgba(153, 211, 237, 0.14);
}

.auth-benefit > .material-symbols-outlined {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a8e84f;
  background: rgba(168, 232, 79, 0.09);
}

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

.auth-benefit strong {
  margin-bottom: 4px;
  font-size: 16px;
}

.auth-benefit small {
  color: #a9c0ca;
  font-size: 14px;
  line-height: 1.45;
}

/* Mot de passe */

.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrapper input {
  width: 100%;
  padding-right: 52px;
}

.auth-password-toggle {
  position: absolute;
  right: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;

  /* Orange = mot de passe masqué */
  color: #ff9f1c;

  cursor: pointer;
  transition:
    color 0.18s ease,
    background-color 0.18s ease;
}

.auth-password-toggle .material-symbols-outlined {
  font-size: 24px;
}

.auth-password-toggle[aria-pressed="true"] {
  /* Vert = mot de passe visible */
  color: #8cff32;
}

.auth-password-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.auth-password-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Page connexion / validation */

.auth-page-login {
  width: min(680px, calc(100% - 40px));
}

.auth-card-login {
  display: block;
}

.auth-card-login .auth-form-panel {
  padding: 34px 42px 38px;
}

.auth-card-login .auth-form-panel h1 {
  margin: 0 0 26px;
  font-size: clamp(28px, 3.2vw, 36px);
  line-height: 1.08;
}

.auth-status-box {
  margin-bottom: 18px;
  align-items: flex-start;
}

.auth-status-box > .material-symbols-outlined {
  flex: 0 0 auto;
  margin-top: 1px;
}

.auth-status-box div {
  min-width: 0;
}

.auth-status-box strong,
.auth-status-box div > span {
  display: block;
}

.auth-status-box strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.auth-status-box div > span {
  font-size: 14px;
  line-height: 1.45;
}

.auth-email-summary {
  margin: 18px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(111, 203, 244, 0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d9eef7;
  background: rgba(0, 20, 32, 0.42);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.auth-email-summary .material-symbols-outlined {
  color: #75d6ff;
  font-size: 20px;
}

.auth-dev-box {
  margin: 18px 0 0;
  padding: 15px;
  border: 1px dashed rgba(255, 176, 67, 0.62);
  border-radius: 10px;
  background: rgba(128, 75, 0, 0.12);
}

.auth-dev-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffb043;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-dev-box p {
  margin: 9px 0 13px;
  color: #c8d9e1;
  font-size: 14px;
  line-height: 1.5;
}

.auth-secondary-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(168, 232, 79, 0.5);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #efffd9;
  background: rgba(93, 145, 37, 0.2);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.auth-secondary-button:hover {
  background: rgba(93, 145, 37, 0.3);
}

.auth-resend-form {
  margin: 14px 0 0;
  text-align: center;
}

.auth-link-button {
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #a8e84f;
  font-family: inherit;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.auth-link-button:hover {
  color: #c8ff79;
}

.auth-login-note {
  margin: 24px 0 22px;
  color: #b8cbd5;
  font-size: 15px;
  line-height: 1.55;
}

.auth-submit-link {
  width: 100%;
}

@media (max-width: 850px) {
  .auth-page {
    width: min(620px, calc(100% - 24px));
    padding: 22px 0;
  }

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

  .auth-benefits {
    border-left: 0;
    border-top: 1px solid rgba(111, 203, 244, 0.22);
  }
}

@media (max-width: 520px) {
  .auth-form-panel,
  .auth-benefits {
    padding: 26px 20px;
  }

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

  .auth-form-panel h1 {
    font-size: 30px;
  }

  .auth-card-login .auth-form-panel {
    padding: 26px 20px 30px;
  }

  .auth-card-login .auth-form-panel h1 {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .auth-secondary-button {
    width: 100%;
  }
}

/* Connexion réelle */

.auth-login-form {
  margin-top: 22px;
}

.auth-login-form .auth-submit {
  margin-top: 2px;
}
