/* Authentification premium : styles isolés des écrans applicatifs. */
:root {
  --premium-auth-ink: #0b1714;
  --premium-auth-ink-soft: #34443f;
  --premium-auth-muted: #687570;
  --premium-auth-paper: #fbfaf6;
  --premium-auth-forest: #073f35;
  --premium-auth-forest-deep: #041d18;
  --premium-auth-emerald: #0c765f;
  --premium-auth-mint: #51d9b6;
  --premium-auth-lime: #d8ff77;
  --premium-auth-line: rgba(11, 23, 20, .13);
}

.premium-auth-body .premium-header,
.premium-auth-body .premium-footer,
.premium-auth-body .public-chat-widget { display: none; }

.premium-auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(81, 217, 182, .18), transparent 30rem),
    radial-gradient(circle at 92% 88%, rgba(216, 255, 119, .14), transparent 34rem),
    #e8f0ea;
}

main.page-shell.auth-shell.premium-auth-shell {
  display: block;
  width: min(1320px, calc(100% - 40px));
  min-height: auto;
  padding: 32px 0 54px;
}

.premium-auth-skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--premium-auth-forest);
  transform: translateY(-170%);
  transition: transform 180ms ease;
}

.premium-auth-skip-link:focus { transform: translateY(0); }

.premium-auth-layout {
  display: grid;
  min-height: min(760px, calc(100vh - 120px));
  grid-template-columns: minmax(390px, .92fr) minmax(520px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 34px 34px 34px 10px;
  background: var(--premium-auth-paper);
  box-shadow: 0 34px 90px rgba(4, 29, 24, .18);
}

.premium-auth-layout-register { min-height: 820px; }

.premium-auth-story {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 4.6vw, 72px);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 22% 8%, rgba(81, 217, 182, .22), transparent 30%),
    linear-gradient(145deg, #0b594a, var(--premium-auth-forest-deep) 68%);
}

.premium-auth-story::before {
  position: absolute;
  right: -180px;
  bottom: -180px;
  width: 560px;
  height: 560px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255, 255, 255, .025), 0 0 0 92px rgba(255, 255, 255, .018);
}

.premium-auth-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.premium-auth-brand > span:last-child { display: grid; }

.premium-auth-brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, .6);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.premium-auth-emblem {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  overflow: hidden;
  border-radius: 11px 11px 11px 3px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1;
  background: linear-gradient(145deg, var(--green), #0f8069);
  box-shadow: 0 10px 24px rgba(12, 118, 95, .28);
}

.premium-auth-emblem::after {
  position: absolute;
  inset: -35% auto auto -50%;
  content: "";
  width: 70%;
  height: 170%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: rotate(28deg);
}

.premium-auth-story-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-block: 78px 64px;
}

.premium-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--premium-auth-mint) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.premium-auth-kicker::before {
  width: 22px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: currentColor;
}

.premium-auth-story h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(44px, 4.7vw, 70px);
  letter-spacing: -.06em;
  line-height: 1.02;
}

.premium-auth-story-copy > p:last-child {
  max-width: 500px;
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 17px;
  line-height: 1.65;
}

.premium-auth-story-bottom { position: relative; z-index: 1; }

.premium-auth-steps { display: grid; gap: 12px; }

.premium-auth-steps > div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-weight: 700;
}

.premium-auth-steps span {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(81, 217, 182, .3);
  border-radius: 9px;
  color: var(--premium-auth-lime);
  font: 9px "Cascadia Mono", Consolas, monospace;
}

.premium-auth-trust {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 11px;
}

.premium-auth-form-side {
  position: relative;
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 62px clamp(34px, 5vw, 76px) 48px;
  background:
    radial-gradient(circle at 100% 0%, rgba(81, 217, 182, .11), transparent 34%),
    var(--premium-auth-paper);
}

.premium-auth-back {
  position: absolute;
  top: 25px;
  right: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--premium-auth-muted);
  font-size: 12px;
  font-weight: 750;
}

.premium-auth-language-switch {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 2;
}

.premium-auth-back:hover { color: var(--premium-auth-emerald); }

.premium-auth-card {
  width: min(510px, 100%);
  padding: 20px 0;
}

.premium-auth-card-register { width: min(650px, 100%); }

.premium-auth-card-head { margin-bottom: 32px; }

.premium-auth-card h2 {
  margin: 12px 0 10px;
  color: var(--premium-auth-ink);
  font-size: clamp(36px, 4vw, 50px);
  letter-spacing: -.055em;
  line-height: 1.05;
}

.premium-auth-card-head p {
  margin: 0;
  color: var(--premium-auth-muted);
  line-height: 1.65;
}

.premium-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(12, 118, 95, .16);
  border-radius: 999px;
  color: var(--premium-auth-forest);
  background: rgba(255, 255, 255, .68);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.premium-auth-pill::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--premium-auth-mint);
  box-shadow: 0 0 0 5px rgba(81, 217, 182, .14);
}

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

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

.premium-auth-field { display: grid; gap: 7px; min-width: 0; }

.premium-auth-field label {
  color: var(--premium-auth-ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.premium-auth-field input,
.premium-auth-field select {
  width: 100%;
  min-height: 53px;
  padding: 0 15px;
  border: 1px solid var(--premium-auth-line);
  border-radius: 12px;
  color: var(--premium-auth-ink);
  outline: none;
  background: #fff;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.premium-auth-field select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 23px,
    calc(100% - 15px) 23px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.premium-auth-field-optional {
  color: var(--premium-auth-muted);
  font-size: 10px;
  font-weight: 650;
}

.premium-auth-field input::placeholder { color: #8b9692; }

.premium-auth-field input:focus,
.premium-auth-field select:focus {
  border-color: var(--premium-auth-emerald);
  box-shadow: 0 0 0 4px rgba(12, 118, 95, .09);
}

.premium-auth-password-wrap { position: relative; }
.premium-auth-password-wrap input { padding-right: 78px; }

.premium-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 54px;
  height: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  color: var(--premium-auth-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transform: translateY(-50%);
}

.premium-auth-password-toggle:hover,
.premium-auth-password-toggle:focus-visible {
  color: var(--premium-auth-emerald);
  background: rgba(12, 118, 95, .07);
}

.premium-auth-submit {
  display: inline-flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 3px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px 13px 13px 5px;
  color: #fff;
  background: var(--premium-auth-forest);
  box-shadow: 0 12px 28px rgba(7, 63, 53, .2);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.premium-auth-submit span { transition: transform 180ms ease; }

.premium-auth-submit:hover {
  background: #095849;
  box-shadow: 0 16px 34px rgba(7, 63, 53, .26);
  transform: translateY(-2px);
}

.premium-auth-submit:hover span { transform: translateX(4px); }

.premium-auth-access-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 1px 0;
  padding: 13px 14px;
  border: 1px solid rgba(12, 118, 95, .14);
  border-radius: 13px;
  color: var(--premium-auth-ink-soft);
  background: rgba(81, 217, 182, .08);
  font-size: 12px;
  line-height: 1.55;
}

.premium-auth-access-note > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--premium-auth-forest);
  background: var(--premium-auth-lime);
  font-weight: 900;
}

label.premium-auth-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  color: var(--premium-auth-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.premium-auth-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--premium-auth-emerald);
}

.premium-auth-check a,
.premium-auth-switch a,
.premium-auth-forgot a {
  color: var(--premium-auth-emerald);
  font-weight: 750;
}

.premium-auth-check a:hover,
.premium-auth-switch a:hover,
.premium-auth-forgot a:hover { text-decoration: underline; }

.premium-auth-forgot {
  margin: -6px 0 0;
  text-align: right;
  font-size: 12px;
}

.premium-auth-switch {
  margin: 24px 0 0;
  color: var(--premium-auth-muted);
  text-align: center;
  font-size: 13px;
}

.premium-auth-policy-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 15px 0 0;
  color: var(--premium-auth-muted);
  font-size: 11px;
}

.premium-auth-policy-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.premium-auth-policy-links a:hover { color: var(--premium-auth-emerald); }

html[data-theme="dark"] .premium-auth-layout {
  border-color: rgba(113, 231, 201, .16);
  background: #071f1a;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .34);
}

html[data-theme="dark"] .premium-auth-form-side {
  background:
    radial-gradient(circle at 100% 0%, rgba(81, 217, 182, .10), transparent 34%),
    #071f1a;
}

html[data-theme="dark"] .premium-auth-card h2,
html[data-theme="dark"] .premium-auth-field label { color: #effaf6; }

html[data-theme="dark"] .premium-auth-card-head p,
html[data-theme="dark"] .premium-auth-back,
html[data-theme="dark"] .premium-auth-switch,
html[data-theme="dark"] .premium-auth-forgot,
html[data-theme="dark"] .premium-auth-policy-links,
html[data-theme="dark"] label.premium-auth-check { color: rgba(232, 255, 247, .69); }

html[data-theme="dark"] .premium-auth-pill {
  color: #dffff6;
  border-color: rgba(113, 231, 201, .18);
  background: rgba(255, 255, 255, .05);
}

html[data-theme="dark"] .premium-auth-field input,
html[data-theme="dark"] .premium-auth-field select {
  color: #effaf6;
  border-color: rgba(113, 231, 201, .2);
  background: rgba(255, 255, 255, .055);
}

html[data-theme="dark"] .premium-auth-field input::placeholder { color: rgba(232, 255, 247, .42); }

html[data-theme="dark"] .premium-auth-password-toggle { color: rgba(232, 255, 247, .62); }

html[data-theme="dark"] .premium-auth-access-note {
  color: rgba(232, 255, 247, .78);
  border-color: rgba(113, 231, 201, .16);
  background: rgba(81, 217, 182, .06);
}

@media (max-width: 980px) {
  .premium-auth-layout { grid-template-columns: 1fr; }
  .premium-auth-story { min-height: 510px; }
  .premium-auth-story-copy { margin-block: 72px 56px; }
  .premium-auth-form-side { padding: 66px 34px 54px; }
}

@media (max-width: 620px) {
  main.page-shell.auth-shell.premium-auth-shell {
    width: min(100% - 24px, 560px);
    padding: 18px 0 38px;
  }

  .premium-auth-layout { border-radius: 24px 24px 24px 8px; }
  .premium-auth-story { min-height: 470px; padding: 28px 24px; }
  .premium-auth-story h1 { font-size: clamp(40px, 12vw, 49px); }
  .premium-auth-story-copy { margin-block: 58px 44px; }
  .premium-auth-form-side { padding: 62px 22px 42px; }
  .premium-auth-back { top: 20px; right: 18px; }
  .premium-auth-language-switch { top: 14px; left: 16px; }
  .premium-auth-form-row { grid-template-columns: 1fr; }
  .premium-auth-card-head { margin-bottom: 27px; }
  .premium-auth-card h2 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .premium-auth-skip-link,
  .premium-auth-submit,
  .premium-auth-submit span,
  .premium-auth-field input,
  .premium-auth-field select { transition-duration: .01ms !important; }
}
