.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 25%, rgba(249, 221, 212, 0.6), transparent 24%),
    radial-gradient(circle at 92% 70%, rgba(220, 238, 232, 0.75), transparent 28%),
    var(--cream);
}

.auth-header {
  min-height: 78px;
  border-bottom: 1px solid rgba(230, 218, 203, 0.8);
  background: rgba(255, 250, 243, 0.84);
  backdrop-filter: blur(14px);
}

.auth-header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
}

.auth-header-inner > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-header-inner > p a {
  color: var(--green);
  font-weight: 800;
}

.auth-main {
  padding: 62px 0 80px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(470px, 0.78fr);
  gap: 90px;
  align-items: center;
}

.auth-story h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 5.5vw, 70px);
  letter-spacing: -4px;
}

.auth-story > p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 17px;
}

.auth-preview {
  position: relative;
  max-width: 500px;
  margin: 35px 0 30px;
  padding: 22px;
  border: 1px solid rgba(230, 218, 203, 0.85);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1deg);
}

.preview-calendar {
  padding: 24px;
  border-radius: 22px;
  background: white;
}

.preview-calendar-head {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
}

.preview-calendar-head span {
  color: var(--coral);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.preview-calendar-head strong {
  font-size: 13px;
}

.preview-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.preview-days span {
  display: flex;
  min-height: 55px;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
}

.preview-days small {
  color: #9aa3a1;
  font-size: 7px;
  font-weight: 800;
}

.preview-days .is-selected {
  color: white;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(47, 124, 107, 0.22);
}

.preview-days .is-selected small {
  color: rgba(255, 255, 255, 0.7);
}

.preview-event {
  display: grid;
  grid-template-columns: 7px 1fr auto;
  gap: 11px;
  margin-top: 16px;
  padding: 13px;
  border-radius: 14px;
  background: var(--cream);
  align-items: center;
}

.preview-event > span {
  width: 7px;
  height: 34px;
  border-radius: 4px;
  background: var(--coral);
}

.preview-event p {
  display: flex;
  margin: 0;
  flex-direction: column;
  line-height: 1.35;
}

.preview-event strong {
  font-size: 10px;
}

.preview-event small {
  color: var(--muted);
  font-size: 8px;
}

.preview-event b {
  padding: 5px 7px;
  border-radius: 7px;
  color: #9a6817;
  background: var(--yellow-soft);
  font-size: 7px;
  text-transform: uppercase;
}

.preview-note {
  position: absolute;
  right: -25px;
  bottom: -18px;
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 10px;
  font-weight: 800;
  transform: rotate(3deg);
}

.auth-benefits {
  display: grid;
  gap: 11px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}

.auth-benefits li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.auth-benefits span {
  display: grid;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  place-items: center;
  font-weight: 800;
}

.auth-card {
  padding: 43px;
  border: 1px solid rgba(230, 218, 203, 0.85);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.auth-card-heading {
  margin-bottom: 28px;
}

.auth-card-heading h1,
.auth-card-heading h2,
.auth-success h2,
.validation-card h1 {
  margin-bottom: 11px;
  font-size: 30px;
  letter-spacing: -1.3px;
}

.auth-card-heading > p:last-child,
.auth-success > p,
.validation-card > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-step {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

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

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

.form-field label,
.label-row label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  border: 1px solid #ddd5ca;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fffefd;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 124, 107, 0.1);
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"] {
  border-color: #c95746;
}

.field-hint,
.field-error {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.45;
}

.field-hint {
  color: #8b9492;
}

.field-error {
  min-height: 0;
  color: #b74737;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 80px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 10px;
  padding: 5px 7px;
  border: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transform: translateY(-50%);
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  line-height: 1.55;
}

.checkbox-field input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--green);
}

.checkbox-field a {
  color: var(--green);
  font-weight: 700;
}

.checkbox-error {
  margin-top: -14px;
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.auth-submit:disabled,
.auth-success .button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.auth-secure-note {
  margin: 20px 0 0;
  color: #8b9492;
  text-align: center;
  font-size: 9px;
}

.auth-secure-note span {
  color: var(--green);
}

.nanny-register-main {
  padding-top: 44px;
}

.nanny-register-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(600px, 1fr);
  gap: 48px;
  align-items: start;
}

.nanny-register-intro {
  position: sticky;
  top: 28px;
  padding-top: 30px;
}

.nanny-register-intro h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: -3px;
}

.nanny-register-intro > p:not(.eyebrow) {
  color: var(--muted);
}

.legal-info-card {
  margin: 28px 0;
  padding: 18px;
  border: 1px solid #cfe4dd;
  border-radius: 16px;
  color: var(--muted);
  background: #edf8f4;
  font-size: 11px;
  line-height: 1.6;
}

.legal-info-card strong {
  color: var(--green-deep);
}

.legal-info-card p {
  margin: 6px 0 0;
}

.nanny-register-card {
  padding: 38px;
}

.nanny-register-form {
  gap: 26px;
}

.nanny-form-section {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 22px;
  border: 1px solid #e5ddd2;
  border-radius: 18px;
  background: #fffdf9;
}

.nanny-form-section legend {
  padding: 0 9px;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 800;
}

.nanny-form-section .form-field select,
.nanny-form-section .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd5ca;
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fffefd;
  font: inherit;
}

.nanny-form-section .form-field select {
  min-height: 49px;
}

.nanny-form-section .form-field textarea {
  resize: vertical;
}

.nanny-form-section .form-field select:focus,
.nanny-form-section .form-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(47, 124, 107, 0.1);
}

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 800;
}

.choice-grid,
.document-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid label {
  display: flex;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #ddd5ca;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
}

.choice-grid input {
  accent-color: var(--green);
}

.section-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.document-field {
  display: flex;
  min-width: 0;
  padding: 14px;
  border: 1px dashed #cfc4b6;
  border-radius: 13px;
  background: white;
  flex-direction: column;
  gap: 6px;
}

.document-field strong {
  font-size: 11px;
}

.document-field > span {
  min-height: 32px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.document-field input[type="file"] {
  width: 100%;
  min-height: auto;
  padding: 7px;
  font-size: 9px;
}

.conditional-document {
  padding-top: 4px;
}

.optional-documents {
  padding-top: 7px;
  border-top: 1px solid #eee7de;
}

.optional-documents summary {
  margin-bottom: 14px;
  color: var(--green);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.nanny-declarations {
  display: grid;
  gap: 13px;
}

@media (max-width: 1020px) {
  .nanny-register-shell {
    grid-template-columns: 1fr;
  }

  .nanny-register-intro {
    position: static;
    max-width: 720px;
    padding-top: 0;
  }
}

@media (max-width: 700px) {
  .nanny-register-card {
    padding: 28px 18px;
  }

  .choice-grid,
  .document-grid {
    grid-template-columns: 1fr;
  }
}

.form-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid #f1c2b8;
  border-radius: 11px;
  color: #9a382b;
  background: #fff0ec;
  font-size: 12px;
}

.form-alert.is-success {
  border-color: #b9dfd3;
  color: var(--green-deep);
  background: #edf8f4;
}

.auth-success {
  padding: 30px 10px;
  text-align: center;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 23px;
  border-radius: 50%;
  color: white;
  background: var(--green);
  box-shadow: 0 0 0 12px var(--green-soft);
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 32px;
}

.auth-success .eyebrow {
  justify-content: center;
}

.auth-success > p {
  margin-bottom: 22px;
}

.auth-success .button {
  width: 100%;
  cursor: pointer;
}

.success-help {
  margin-bottom: 20px;
  padding: 12px;
  border-radius: 11px;
  color: var(--muted);
  background: var(--cream);
  font-size: 11px;
}

.centered-link {
  justify-content: center;
  margin-top: 20px;
}

.login-main {
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 70px 20px;
  place-items: center;
}

.login-shell {
  display: grid;
  width: min(900px, 100%);
  grid-template-columns: minmax(420px, 1fr) 0.75fr;
  overflow: hidden;
  border: 1px solid rgba(230, 218, 203, 0.85);
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
}

.login-card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.login-card .eyebrow {
  margin-bottom: 15px;
}

.login-card .auth-card-heading h1 {
  font-size: 34px;
}

.active-session-panel {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid #c9e2da;
  border-radius: 13px;
  color: var(--green-deep);
  background: #edf8f4;
}

.active-session-panel strong {
  font-size: 11px;
}

.active-session-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.active-session-panel p span {
  color: var(--ink);
  font-weight: 700;
}

.active-session-actions {
  display: flex;
  margin-top: 11px;
  align-items: center;
  gap: 12px;
}

.active-session-actions a,
.active-session-actions button {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.active-session-actions a {
  text-decoration: none;
}

.active-session-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.active-session-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-row a {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.login-aside {
  position: relative;
  display: flex;
  min-height: 520px;
  overflow: hidden;
  padding: 45px 38px;
  color: white;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.12) 0 8%, transparent 8.5%),
    var(--green);
  flex-direction: column;
  justify-content: flex-end;
}

.login-aside::before,
.login-aside::after {
  position: absolute;
  border: 35px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.login-aside::before {
  top: -60px;
  right: -70px;
  width: 250px;
  height: 250px;
}

.login-aside::after {
  bottom: 110px;
  left: -100px;
  width: 190px;
  height: 190px;
}

.login-aside-pearl {
  position: absolute;
  top: 75px;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 40px 80px 0 -22px rgba(237, 186, 99, 0.75);
  transform: translateX(-50%);
}

.login-aside > p,
.login-aside > div {
  position: relative;
  z-index: 1;
}

.login-aside > p {
  margin-bottom: 24px;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.35;
}

.login-aside > div {
  display: flex;
  flex-direction: column;
}

.login-aside small {
  color: rgba(255, 255, 255, 0.65);
}

.register-link {
  margin: 26px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}

.register-link a {
  color: var(--green);
  font-weight: 800;
}

.resend-panel {
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: var(--yellow-soft);
  text-align: center;
  font-size: 11px;
}

.resend-panel p {
  margin-bottom: 5px;
}

.text-button {
  padding: 0;
  border: 0;
  color: #8b5b0d;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.validation-main {
  display: grid;
  min-height: calc(100vh - 78px);
  padding: 50px 20px;
  place-items: center;
}

.validation-card {
  width: min(520px, 100%);
  padding: 60px 45px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.validation-card .eyebrow {
  justify-content: center;
}

.validation-card > p:not(.eyebrow) {
  margin-bottom: 28px;
}

.validation-card.is-error .success-icon {
  background: var(--coral);
  box-shadow: 0 0 0 12px var(--coral-soft);
}

@media (max-width: 940px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .auth-story {
    max-width: 700px;
  }

  .auth-card {
    width: min(620px, 100%);
    justify-self: center;
  }
}

@media (max-width: 700px) {
  .auth-header-inner > p {
    display: none;
  }

  .auth-main {
    padding: 40px 0 60px;
  }

  .auth-story h1 {
    font-size: 46px;
    letter-spacing: -3px;
  }

  .auth-preview {
    margin-right: 10px;
  }

  .login-shell {
    display: block;
    width: min(500px, 100%);
  }

  .login-aside {
    display: none;
  }
}

@media (max-width: 520px) {
  .auth-story {
    display: none;
  }

  .auth-layout {
    display: block;
  }

  .auth-card {
    padding: 30px 22px;
    border-radius: 22px;
  }

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

  .login-main {
    padding: 28px 14px;
  }

  .login-card {
    padding: 34px 24px;
  }

  .validation-card {
    padding: 45px 25px;
  }
}

/* ── Panneau confirmation suppression de compte ── */

.account-deleted-panel {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  color: #1f5c50;
  background: #dceee8;
  font-size: 13px;
  line-height: 1.5;
}
