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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 20%, #1f2937 0, #0b1223 35%, #050914 100%);
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.logo { text-align: center; margin-bottom: 2rem; }
.logo img { width: 64px; height: 64px; margin-bottom: 0.75rem; }
.logo h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.02em; }
.logo p { color: #94a3b8; font-size: 0.875rem; margin-top: 0.25rem; }

label {
  display: block;
  font-size: 0.875rem;
  color: #cbd5e1;
  margin: 0.85rem 0 0.4rem;
}
label:first-of-type { margin-top: 0; }

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  background: #0f172a;
  border: 1px solid #374151;
  border-radius: 0.5rem;
  color: #f8fafc;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.15s;
  outline: none;
}
input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

button[type="submit"] {
  width: 100%;
  background: #22c55e;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
button[type="submit"]:hover { background: #16a34a; }
button[type="submit"]:active { transform: scale(0.98); }

.error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 0.5rem;
  color: #fca5a5;
  font-size: 0.875rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.success {
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  border-radius: 0.5rem;
  color: #86efac;
  font-size: 0.875rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  font-size: 0.875rem;
}
.auth-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-links a:hover { color: #22c55e; }

.hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}
