:root {
  --bg: #0f0e13;
  --surface: #16141a;
  --text: #f1ece2;
  --muted: #a49f97;
  --red: #d54c56;
  --violet: #7a2bff;
  --line: rgba(241, 236, 226, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, rgba(122, 43, 255, 0.12), transparent 60%), var(--bg);
  color: var(--text);
  font-family: "Figtree", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
  cursor: pointer;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: min(480px, 100%);
  margin: 0 auto;
  padding: 40px 16px 64px;
}

.brand {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 360px);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* Le logo a un halo transparent tout autour : on remonte le sous-titre dessous */
.brand-sub {
  margin-top: -9%;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
}

.scene {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text);
  overflow: visible;
}

.scene .accent {
  stroke: var(--red);
}

.art-note {
  font-family: "Gochi Hand", cursive;
  font-size: 20px;
  fill: var(--red);
}

.card {
  width: 100%;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card h2 {
  margin: 0 0 16px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 18px;
}

.card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.card input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
}

.card input::placeholder {
  color: rgba(241, 236, 226, 0.35);
}

.card input:focus {
  outline: 1px solid var(--violet);
  border-color: var(--violet);
}

.card label + input {
  margin-bottom: 8px;
}

.card button[type="submit"] {
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 8px 20px -6px rgba(122, 43, 255, 0.7);
  transition: background-color 0.2s;
}

.card button[type="submit"]:hover {
  background: #8a45ff;
}

.card button[type="submit"]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.card button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: wait;
}

.quota,
.whoami {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.whoami {
  margin-top: 4px;
}

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-decoration: underline;
}

.status {
  margin: 0;
  min-height: 1.5em;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

.status.is-good {
  color: #7ee2a8;
}

.status.is-bad {
  color: #ff8a92;
}
