@font-face {
  font-family: "Satoshi";
  src: url("./fonts/Satoshi-Variable.woff2") format("woff2"),
       url("./Satoshi-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("./fonts/Satoshi-VariableItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}

:root {
  /* Repris du dashboard Botala / direction AppKittie */
  --ink: #141715;
  --ink-soft: #252a27;
  --canvas: #f4f7f5;
  --panel: #ffffff;
  --line: #dde4e0;
  --line-soft: #edf1ef;
  --muted: #75807a;
  --muted-dark: #9ca7a1;
  --green: #00bc7c;
  --green-dark: #008e5d;
  --green-soft: #e1f7ee;
  --sidebar: #111312;
  --sidebar-soft: #1a1d1b;
  --error: #b94743;
  --error-soft: #fff0ef;
  --info: #176c8b;
  --info-soft: #eef8fc;
  --shadow: 0 10px 28px rgba(22, 33, 25, 0.04);
  --shadow-float: 0 24px 70px rgba(13, 20, 16, 0.12);
  --radius-shell: 18px;
  --radius-card: 14px;
  --radius-control: 10px;
  --icon: 17px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #101211;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #101211;
  color: var(--ink);
  font-family: "Satoshi", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input {
  outline: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

a {
  color: inherit;
}

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(330px, 0.72fr) minmax(590px, 1.28fr);
  gap: 12px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 12px;
  background: #101211;
}

/* Colonne sombre : même langage visuel que la sidebar du dashboard. */
.hero {
  position: sticky;
  top: 12px;
  height: calc(100vh - 24px);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-shell);
  background: var(--sidebar);
  color: #fff;
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: 86px;
  left: 50%;
  width: 72%;
  height: 36%;
  border-radius: 50%;
  background: rgba(0, 188, 124, 0.18);
  filter: blur(72px);
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 19, 18, 0.05) 34%, rgba(17, 19, 18, 0.2) 60%, #111312 91%);
  content: "";
  pointer-events: none;
}

.hero-img {
  position: absolute;
  z-index: 1;
  top: 98px;
  left: 24px;
  display: block;
  width: calc(100% - 48px);
  height: 42%;
  object-fit: cover;
  object-position: left top;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background: #202421;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  filter: saturate(0.74) brightness(0.78) contrast(0.96);
}

.hero-brand,
.hero-copy {
  position: absolute;
  z-index: 3;
  right: 28px;
  left: 28px;
}

.hero-brand {
  top: 25px;
}

.hero-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 750;
  text-decoration: none;
}

.hero-brand-link img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.24));
}

.hero-copy {
  bottom: 31px;
  max-width: 520px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 0 10px;
  border: 1px solid rgba(0, 188, 124, 0.23);
  border-radius: 999px;
  background: rgba(0, 188, 124, 0.10);
  color: #79e7bd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-copy h2 {
  max-width: 490px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.1vw, 48px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero-copy p:last-child {
  max-width: 430px;
  margin: 16px 0 0;
  color: #aeb7b2;
  font-size: 14px;
  line-height: 1.55;
}

/* Grande surface claire arrondie comme le workspace AppKittie/Botala. */
.panel {
  display: grid;
  min-width: 0;
  min-height: calc(100vh - 24px);
  min-height: calc(100dvh - 24px);
  place-items: center;
  overflow: hidden;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-shell);
  background: var(--canvas);
}

.auth-register .panel {
  align-items: start;
  overflow: visible;
  padding-top: 28px;
  padding-bottom: 28px;
}

.card {
  width: min(100%, 540px);
  padding: 34px 36px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--shadow-float);
}

.auth-register .card {
  width: min(100%, 650px);
  padding-top: 28px;
  padding-bottom: 24px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.auth-register .auth-brand {
  margin-bottom: 22px;
}

.auth-brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.card h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card p.lead {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
}

.auth-register .card p.lead {
  margin-bottom: 20px;
}

.form-row {
  margin-bottom: 15px;
}

.auth-register .form-row {
  margin-bottom: 12px;
}

.label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.label svg {
  color: #7d8882;
}

.input {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  box-shadow: 0 1px 0 rgba(20, 23, 21, 0.02);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-register .input {
  min-height: 46px;
}

.input:hover {
  border-color: #c8d2cd;
}

.input:focus-within {
  border-color: rgba(0, 188, 124, 0.75);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 188, 124, 0.10);
}

.input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-family: "Satoshi", Arial, sans-serif;
  font-size: 14px;
  font-weight: 450;
}

.input input::placeholder {
  color: #a2aaa6;
}

.input-action {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #7c8781;
  cursor: pointer;
}

.input-action:hover,
.input-action:focus-visible {
  background: var(--green-soft);
  color: var(--green-dark);
  outline: none;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.use-case-option {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.use-case-option:hover {
  border-color: #b8c6bf;
  transform: translateY(-1px);
}

.use-case-option:has(input:checked) {
  border-color: rgba(0, 188, 124, 0.72);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 188, 124, 0.07);
}

.use-case-option input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.use-case-option strong,
.use-case-option small {
  display: block;
  overflow-wrap: anywhere;
}

.use-case-option strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.3;
}

.use-case-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.use-case-option-wide {
  grid-column: 1 / -1;
}

.btn {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid var(--green-dark);
  border-radius: var(--radius-control);
  background: var(--green);
  color: #062a1d;
  font-weight: 720;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-register .btn {
  margin-top: 16px;
}

.btn:hover {
  background: #10ca89;
  box-shadow: 0 8px 22px rgba(0, 188, 124, 0.17);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  font-size: 12px;
}

.link {
  color: var(--green-dark);
  font-weight: 650;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.muted {
  color: var(--muted);
}

.error,
.info,
.msg {
  margin: 0 0 17px;
  padding: 11px 12px;
  border-radius: var(--radius-control);
  font-size: 12px;
  line-height: 1.45;
}

.error {
  border: 1px solid #f1c6c3;
  background: var(--error-soft);
  color: var(--error);
}

.info,
.msg {
  border: 1px solid #bdddea;
  background: var(--info-soft);
  color: var(--info);
}

.info .link {
  color: var(--info);
}

.auth-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  color: #929c97;
  font-size: 11px;
  text-align: center;
}

.auth-register .auth-foot {
  margin-top: 18px;
}

svg.lucide {
  width: var(--icon);
  height: var(--icon);
  stroke-width: 1.9;
}

.label svg.lucide {
  flex: 0 0 var(--icon);
}

@media (max-width: 1160px) {
  .auth-wrap {
    grid-template-columns: minmax(310px, 0.68fr) minmax(540px, 1.32fr);
  }

  .hero-img {
    height: 38%;
  }

  .hero-copy h2 {
    font-size: 36px;
  }

  .panel {
    padding: 28px;
  }
}

@media (max-width: 920px) {
  html,
  body {
    background: var(--canvas);
  }

  .auth-wrap {
    display: block;
    min-height: 100vh;
    padding: 0;
    background: var(--canvas);
  }

  .hero {
    display: none;
  }

  .panel,
  .auth-register .panel {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    overflow: visible;
    padding: 28px 20px;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 620px) {
  .panel,
  .auth-register .panel {
    padding: 0;
    background: #fff;
  }

  .card,
  .auth-register .card {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 28px 20px 24px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-brand,
  .auth-register .auth-brand {
    margin-bottom: 27px;
  }

  .card h1 {
    font-size: 28px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .use-case-option-wide {
    grid-column: auto;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .auth-foot {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .input,
  .use-case-option {
    transition: none;
  }
}
