@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: #09090B;
  color: #FAFAFA;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: #111113;
  border: 1px solid #27272A;
  border-radius: 16px;
  padding: 2.5rem 2rem;
}

.auth-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FAFAFA;
  text-decoration: none;
  display: block;
  margin-bottom: 2rem;
}
.auth-logo span { color: #6366F1; }

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #FAFAFA;
  margin-bottom: 0.35rem;
}

.auth-sub {
  color: #71717A;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.alert-error   { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #FCA5A5; }
.alert-success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); color: #6EE7B7; }

.alert a { color: inherit; }

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 500;
  color: #A1A1AA;
  margin-bottom: 0.4rem;
}

.field-link {
  font-size: 0.8rem;
  color: #6366F1;
  text-decoration: none;
}
.field-link:hover { text-decoration: underline; }

.field input {
  width: 100%;
  background: #18181B;
  border: 1px solid #27272A;
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  color: #FAFAFA;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-color: #6366F1; }
.field input::placeholder { color: #52525B; }

.btn-auth {
  width: 100%;
  background: #6366F1;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 0.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  display: block;
  text-align: center;
}
.btn-auth:hover   { background: #5254CC; }
.btn-auth:active  { transform: scale(0.98); }

.auth-alt {
  text-align: center;
  font-size: 0.85rem;
  color: #71717A;
  margin-top: 1.25rem;
}
.auth-alt a { color: #6366F1; text-decoration: none; }

.auth-terms {
  text-align: center;
  font-size: 0.75rem;
  color: #3F3F46;
  margin-top: 1rem;
}
.auth-terms a { color: #52525B; text-decoration: underline; }
