/* Login Page Styles - Minimalist Design */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  padding: 1rem;
  position: relative;
}

/* Subtle background gradient accent */
.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(135deg, rgba(76, 110, 245, 0.05) 0%, rgba(92, 124, 250, 0.05) 100%);
  z-index: 0;
}

.login-container {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-color);
}

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

.logo h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.logo p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
}

/* Form Styles - page-specific overrides */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.2s;
  background: var(--surface);
  color: var(--text-primary);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(76, 110, 245, 0.1);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* Button overrides for login page */
.btn-block {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 110, 245, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Form Toggle */
.form-toggle {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.form-toggle p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.toggle-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s;
}

.toggle-link:hover {
  color: var(--primary-hover);
}

/* Error Message */
.error-message {
  padding: 0.75rem 1rem;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger-color);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Alert overrides for login page */
.alert-info {
  padding: 1rem;
  background: rgba(76, 110, 245, 0.08);
  border: 1px solid rgba(76, 110, 245, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.alert-info strong {
  display: block;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.alert-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Inline spinner for button loading state */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spinInline 0.6s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spinInline {
  to { transform: rotate(360deg); }
}

/* Form Display States */
#signup-form {
  display: none;
}

#newpassword-form {
  display: none;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 2rem 1.5rem;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .logo p {
    font-size: 0.85rem;
  }
}
