* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top left, #f8fafc 0%, #cbd5e1 100%);
  font-family: 'Inter', -apple-system, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: #ffffff;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

h2 {
  color: #1e293b;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  margin-bottom: 24px;
}

.input-group {
  margin-bottom: 20px;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 15px;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.5;
}

input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8fafc;
  transition: all 0.2s ease;
}

/* Extra right padding for password field to fit eye icon */
input[type="password"], input[type="text"]#signup-password, input[type="text"]#login-password {
  padding-right: 45px;
}

input:focus {
  outline: none;
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 4px;
}

.requirements-list li {
  font-size: 0.78rem;
  margin-bottom: 4px;
  color: #ef4444; /* Red by default */
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.requirements-list li::before {
  content: '✕';
  margin-right: 8px;
  font-weight: bold;
}

.requirements-list li.valid {
  color: #10b981; /* Green when valid */
}

.requirements-list li.valid::before {
  content: '✓';
}

button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #4f46e5;
  color: white;
  margin-top: 10px;
  transition: background 0.3s;
}

button:hover {
  background: #4338ca;
}

.toggle-text {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.toggle-text a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}

.hidden {
  display: none;
}