*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 32px;
}
.brand-mark {
  width: 44px; height: 44px;
  background: #7c3aed;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; font-size: 1.15rem;
}
.brand-name { font-weight: 800; font-size: 1.4rem; color: #0f172a; }
h1 { font-size: 1.5rem; color: #0f172a; margin-bottom: 6px; }
.subtitle { color: #64748b; font-size: 0.95rem; margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: #374151; }
input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #e2e8f0; border-radius: 12px;
  font-family: inherit; font-size: 1rem; background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.12); }
.btn {
  width: 100%; padding: 14px;
  background: #7c3aed; color: #fff;
  border: none; border-radius: 14px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  cursor: pointer; margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: #5b21b6; }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #ddd6fe; cursor: not-allowed; }
.error {
  background: #fef2f2; border: 1.5px solid #f87171;
  color: #b91c1c; border-radius: 10px;
  padding: 12px 16px; font-size: 0.9rem; font-weight: 500;
  margin-bottom: 16px; display: none;
}
.terms-notice {
  margin-top: 14px;
  text-align: center;
  font-size: 0.775rem;
  color: #94a3b8;
  line-height: 1.5;
}
.terms-notice a { color: #7c3aed; text-decoration: none; }
.terms-notice a:hover { text-decoration: underline; }
.back { margin-top: 16px; text-align: center; font-size: 0.875rem; color: #64748b; }
.back a { color: #7c3aed; text-decoration: none; font-weight: 500; }

@media (max-width: 480px) {
  body { padding: 16px; }
  .card { padding: 32px 20px; }
}
