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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  background: #0f1117;
  color: #e4e4e7;
  min-height: 100vh;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
}

.login-card {
  background: #1a1b23;
  border: 1px solid #2a2b35;
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.logo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo img {
  height: 48px;
  width: auto;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.25rem;
}

.subtitle {
  text-align: center;
  color: #71717a;
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #a1a1aa;
}

.form-group input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: #0f1117;
  border: 1px solid #2a2b35;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #6366f1;
}

.form-group input::placeholder {
  color: #52525b;
}

.login-btn {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #4f46e5;
}

.success-message {
  display: none;
  text-align: center;
  margin-top: 1.5rem;
}

.success-message h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.success-message .subtitle {
  margin-bottom: 0;
}

.form-error {
  color: #f87171;
  font-size: 0.85rem;
  text-align: center;
  min-height: 1.2rem;
  margin-top: 0.75rem;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #71717a;
}

.form-footer a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Code input */
.code-instructions {
  color: #a1a1aa;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.code-instructions strong {
  color: #e4e4e7;
}

.code-inputs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.code-digit {
  width: 3rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: monospace;
  background: #0f1117;
  border: 1px solid #2a2b35;
  border-radius: 8px;
  color: #e4e4e7;
  outline: none;
  transition: border-color 0.2s;
}

.code-digit:focus {
  border-color: #6366f1;
}

.back-btn {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.5rem;
  background: transparent;
  color: #a1a1aa;
  border: 1px solid #2a2b35;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.back-btn:hover {
  border-color: #6366f1;
  color: #e4e4e7;
}
