:root {
  --primary: #38bdf8;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #f97373;
  --border: rgba(148, 163, 184, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 45%, #000 100%);
  color: var(--text);
}

.login-card {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0b1220;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.85);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.18);
  color: var(--primary);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: 1.2rem;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #020617;
  color: var(--text);
  font-size: 16px; /* évite le zoom automatique sur iPhone */
}

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

#login-code {
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #020617;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.login-message {
  min-height: 1.4em;
  margin: 12px 0 4px;
  color: var(--danger);
  font-size: 0.9rem;
}

.login-note {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
