*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: #111827;
  color: #f9fafb;
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}
.logo { text-align: center; margin-bottom: 1.75rem; }
.logo .crown { font-size: 2.5rem; margin-bottom: 0.5rem; display: block; }
.logo h1 { font-size: 1.5rem; font-weight: 700; color: #fff; }
.logo p { font-size: 0.85rem; color: #9ca3af; margin-top: 0.25rem; }
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 0.35rem;
  margin-top: 1rem;
}
label:first-of-type { margin-top: 0; }
input {
  width: 100%;
  background: #111827;
  border: 1px solid #374151;
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  color: #f9fafb;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}
input:focus { border-color: #a855f7; }
input::placeholder { color: #6b7280; }
.btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem;
  background: #9333ea;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn:hover:not(:disabled) { background: #a855f7; }
.btn:disabled { background: #4b5563; color: #9ca3af; cursor: not-allowed; }
.err {
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.4);
  color: #fca5a5;
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.85rem;
  margin-top: 1rem;
  display: none;
}
.success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #86efac;
  border-radius: 0.6rem;
  padding: 1.25rem;
  font-size: 0.92rem;
  text-align: center;
  display: none;
}
.success i { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.footer-link { text-align: center; margin-top: 1.5rem; font-size: 0.85rem; color: #6b7280; }
.footer-link a { color: #a855f7; text-decoration: none; font-weight: 500; }
.footer-link a:hover { text-decoration: underline; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
