:root {
  --bg: #050508;
  --panel: #0e0e16;
  --line: rgba(168, 85, 247, 0.28);
  --text: #f5f3ff;
  --muted: #9b9bb3;
  --violet: #a855f7;
  --hot: #e879f9;
  --err: #fda4af;
  --ok: #6ee7b7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 45% at 50% -10%, rgba(124, 58, 237, 0.4), transparent 55%),
    var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
a { color: #c4b5fd; text-decoration: none; }
a:hover { color: #fff; }
.card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(165deg, rgba(24, 16, 40, 0.95), rgba(10, 10, 16, 0.98));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(168, 85, 247, 0.12);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: Syne, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--hot), var(--violet), #6b21a8);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}
h1 {
  font-family: Syne, Inter, sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}
.sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1.35rem;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0.85rem 0 0.35rem;
}
input {
  width: 100%;
  background: #0a0a12;
  border: 1.5px solid var(--line);
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}
button[type="submit"] {
  width: 100%;
  margin-top: 1.25rem;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--hot), var(--violet), #7c3aed);
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.35);
}
button[type="submit"]:hover { filter: brightness(1.06); }
button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
.err {
  margin-top: 0.85rem;
  color: var(--err);
  font-size: 0.88rem;
  min-height: 1.2em;
}
.foot {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.back {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
