/* Connexion / inscription : reprend l'identité de la landing page (blue/yellow,
   Instrument Serif + Plus Jakarta Sans + JetBrains Mono), pas le système
   orange/IBM Plex de l'app elle-même — voir docs/design pour ce dernier.
   Feuille dédiée et non fusionnée à style.css : les deux identités ne doivent
   jamais se mélanger par accident sur une page. */

.auth-body {
  --paper: #fdfdfb;
  --ink: #0a0d14;
  --ink-soft: #5a6478;
  --ink-faint: #8b96ac;
  --blue: #1447ff;
  --blue-deep: #0b2fb8;
  --yellow: #ffd60a;
  --line: #e7ebf6;
  --panel: #f2f5fd;
  --check: #14804a;
  --check-pale: #e6f6ec;
  --danger: #a3212b;
  --danger-pale: #fbe9ea;

  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-lang {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 0 auto 20px;
  width: fit-content;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.auth-lang-opt {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: #8b96ac;
  background: transparent;
  transition: all 0.2s ease;
}

.auth-lang-opt.active { background: var(--ink); color: var(--yellow); }

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 34px;
  box-shadow: 0 40px 80px -40px rgba(10, 13, 20, 0.25);
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 26px;
}

.auth-brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--yellow));
  box-shadow: 0 0 0 4px rgba(20, 71, 255, 0.1);
}

.auth-brand-name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.auth-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 6px;
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.auth-field-hint {
  font-size: 11.5px;
  color: var(--ink-faint);
}

.auth-field input {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px 15px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-field input::placeholder { color: #9aa3b5; }

.auth-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(20, 71, 255, 0.13);
}

.auth-submit {
  margin-top: 6px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 15px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.auth-submit:hover {
  background: var(--blue-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(20, 71, 255, 0.85);
}

.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 24px 0 0;
}

.auth-switch a { color: var(--blue); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { color: var(--blue-deep); }

.auth-flash-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
}

.auth-flash {
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
}

.auth-flash-success { background: var(--check-pale); color: var(--check); }
.auth-flash-error { background: var(--danger-pale); color: var(--danger); }
.auth-flash-info { background: rgba(20, 71, 255, 0.08); color: var(--blue-deep); }
