:root {
  --indigo: #4f46e5;
  --indigo-dark: #4338ca;
  --indigo-soft: #eef2ff;
  --ink: #23221c;
  --muted: #67666e;
  --cream: #fcfbf6;
  --line: #e8e6dd;
  --white: #fff;
  --mint: #8adbcd;
  --green: #15803d;
  --amber: #b45309;
  --red: #b91c1c;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(138, 219, 205, .24), transparent
    28rem),
    radial-gradient(circle at 92% 8%, rgba(255, 180, 172, .22), transparent
    25rem),
    var(--cream);
  font-family: "Inter", system-ui, sans-serif;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: "Figtree", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand svg {
  width: 32px;
  height: 32px;
}

.back-link {
  color: #57555d;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 4px;
}

.account-main {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(380px, 520px);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
  width: min(1040px, calc(100% - 40px));
  margin: auto;
  padding: 44px 0 72px;
}

.account-main.single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

.intro-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--indigo-dark);
  background: var(--indigo-soft);
  font-size: 13px;
  font-weight: 700;
}

.intro-mark::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.intro h1 {
  max-width: 560px;
  margin: 20px 0 18px;
  font-family: "Figtree", sans-serif;
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.045em;
}

.intro h1 span {
  color: var(--indigo);
}

.intro p {
  max-width: 520px;
  margin: 0;
  color: #57555d;
  font-size: 17px;
  line-height: 1.65;
}

.trust-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #4d4b53;
  font-size: 14px;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: #dcfce7;
  font-size: 13px;
  font-weight: 900;
}

.card {
  border: 1px solid rgba(232, 230, 221, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 75px rgba(35, 34, 28, .13);
  padding: clamp(28px, 5vw, 44px);
  backdrop-filter: blur(14px);
}

.card h2 {
  margin: 0 0 10px;
  font-family: "Figtree", sans-serif;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -.025em;
}

.card h2.spaced-title {
  margin-top: 20px;
}

.card-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.field label {
  color: #37363d;
  font-size: 13px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #d9d7d0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.field input:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}

.field-help {
  color: #77757c;
  font-size: 12px;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  color: var(--white);
  background: var(--indigo);
  box-shadow: 0 12px 25px rgba(79, 70, 229, .24);
  font-family: "Figtree", sans-serif;
  font-weight: 750;
  text-decoration: none;
  transition: transform .18s, background .18s, opacity .18s;
}

.button:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
}
.button:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.button.secondary {
  color: var(--indigo-dark);
  border: 1px solid #d8d5fb;
  background: var(--indigo-soft);
  box-shadow: none;
}

.button.secondary:hover {
  background: #e2e7ff;
}

.button.ghost {
  color: #56545d;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: none;
}

.button.ghost:hover {
  color: var(--ink);
  background: #f8f7f3;
}

.button.top-gap {
  margin-top: 16px;
}

.form-row {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 23px;
}

.text-link {
  color: var(--indigo-dark);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.notice {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: #4d4b53;
  background: #f6f5f1;
  font-size: 13px;
  line-height: 1.5;
}

.notice.error {
  color: var(--red);
  border: 1px solid #fecaca;
  background: #fef2f2;
}
.notice.success {
  color: var(--green);
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}
.notice.warning {
  color: var(--amber);
  border: 1px solid #fde68a;
  background: #fffbeb;
}

.account-email {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  word-break: break-word;
}

.entitlement {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #e0def7;
  border-radius: 17px;
  background: linear-gradient(145deg, #f8f9ff, var(--indigo-soft));
}

.entitlement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.entitlement-label {
  color: #6a6872;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.entitlement-name {
  margin-top: 5px;
  font-family: "Figtree", sans-serif;
  font-size: 19px;
  font-weight: 800;
}
.entitlement-detail {
  margin: 9px 0 0;
  color: #66646d;
  font-size: 12.5px;
  line-height: 1.45;
}

.status-pill {
  flex: none;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green);
  background: #dcfce7;
  font-size: 11px;
  font-weight: 800;
}
.status-pill.read-only {
  color: var(--amber);
  background: #fef3c7;
}
.status-pill.neutral {
  color: #56545d;
  background: #e7e5e4;
}

.actions {
  display: grid;
  gap: 12px;
}

.legal-note {
  margin: 22px 0 0;
  color: #7a7880;
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 8px 16px;
  flex-wrap: wrap;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
  color: #77756d;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer a {
  text-underline-offset: 3px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 820px) {
  .account-main {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 24px;
  }
  .intro {
    text-align: center;
  }
  .intro h1,
  .intro p {
    margin-left: auto;
    margin-right: auto;
  }
  .trust-list {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: min(100% - 28px, 1120px);
    padding: 18px 0;
  }
  .back-link {
    font-size: 0;
  }
  .back-link::after {
    content: "Accueil";
    font-size: 13px;
  }
  .account-main,
  .account-main.single {
    width: min(100% - 24px, 520px);
    padding: 18px 0 48px;
  }
  .intro h1 {
    font-size: 42px;
  }
  .card {
    border-radius: 22px;
    padding: 26px 21px;
  }
  .site-footer {
    width: min(100% - 28px, 1120px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.auth-fields{border:0;padding:0;margin:0;min-width:0;}
