/* Studio Gate — CSS unifié avec studio-ui.
   Tokens copiés de studio-ui/tokens.css (source de vérité).
   Radius 2px partout, Bricolage Grotesque, accent bleu #0a84ff.
   Layout spécifique à la page de login. */

:root {
  --color-bg: #131313;
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-border: rgba(255, 255, 255, 0.09);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-text: #fafafa;
  --color-muted: #a3a3a3;
  --color-faint: #525252;
  --color-accent: #0a84ff;
  --color-accent-dim: #64a8ff;
  --color-danger: #ff453a;
  --font-sans: "Bricolage Grotesque", -apple-system, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  display: flex; align-items: center; justify-content: center;
  min-height: 100dvh; padding: 24px;
}
::selection { background: rgba(10, 132, 255, 0.35); color: #fff; }

.card {
  width: 100%; max-width: 380px; display: flex; flex-direction: column;
  align-items: center; gap: 14px; text-align: center;
}

.logo {
  width: 64px; height: 64px; border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--color-accent), #0060df);
  box-shadow: 0 12px 30px rgba(10, 132, 255, .35);
  margin-bottom: 4px;
}

h1 {
  font-size: 22px; font-weight: 600; margin: 0;
  letter-spacing: -.2px; color: var(--color-text);
}
.sub {
  color: var(--color-faint); font-size: 13.5px; margin: 0 0 6px;
}

/* champ style .field (aligné sur studio-ui/components/field.css) */
.field {
  display: flex; align-items: center; gap: 9px;
  width: 100%; height: 46px; padding: 0 13px;
  border-radius: 2px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: border-color .15s;
}
.field:focus-within { border-color: var(--color-accent); }
.field svg { flex: none; opacity: .8; }
.field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--color-text); font-size: 15px; font-family: var(--font-sans);
}
.field input::placeholder { color: var(--color-faint); }

/* bouton primary (aligné sur studio-ui/components/button.css) */
.btn {
  width: 100%; height: 46px;
  border: 0; border-radius: 2px; cursor: pointer;
  background: var(--color-accent); color: #fff;
  font-size: 15px; font-weight: 600; font-family: var(--font-sans);
  transition: filter .15s, opacity .15s;
  margin-top: 2px;
}
.btn:hover { filter: brightness(1.07); }
.btn:disabled { opacity: .55; cursor: default; }

/* erreur */
.err {
  width: 100%; color: #ff8a84; font-size: 13px;
  background: rgba(255, 69, 58, .12);
  border: 1px solid rgba(255, 69, 58, .4);
  border-radius: 2px; padding: 9px 12px;
  display: none;
}

.foot {
  color: var(--color-faint); font-size: 11.5px; margin-top: 8px;
}
