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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface-2: #22223b;
  --border: #2e2e4a;
  --text: #f2f2fa;
  --text-muted: #9999aa;
  --accent: #9b91f9;
  --accent-btn: #5c52d9;
  --accent-btn-hover: #4f46c2;
  --error: #e05c5c;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* --- auth --- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.auth-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-btn);
  color: #fff;
  display: grid;
}

.auth-mark svg { width: 100%; height: 100%; }
.auth-mark .cloche-shine { stroke: var(--accent-btn); }

.auth-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-error {
  color: var(--error);
  font-size: 0.88rem;
  background: rgba(224, 92, 92, 0.1);
  border: 1px solid rgba(224, 92, 92, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.auth-back {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
}
.auth-back:hover { color: var(--text); }

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

label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.15s;
}
input:focus-visible { border-color: var(--accent); }

button[type="submit"] {
  padding: 12px;
  background: var(--accent-btn);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
button[type="submit"]:hover { background: var(--accent-btn-hover); }

.auth-card button[type="submit"] { width: 100%; }

/* --- responsive --- */

@media (max-width: 600px) {
  .auth-card { padding: 28px 20px; }
}
