/* === Auth Pages (Login & Register) === */
body.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-color);
  background-image: radial-gradient(circle at top right, rgba(37,211,102,0.05) 0%, transparent 60%),
                    radial-gradient(circle at bottom left, rgba(18,140,126,0.05) 0%, transparent 60%);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2rem 1rem;
}

/* Decorative background elements */
body.auth-page::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,211,102,0.1) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

body.auth-page::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(18,140,126,0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.auth-container {
  background: var(--surface-color);
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  background: var(--glass-bg);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header svg {
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(37, 211, 102, 0.2));
}

.auth-header h1 {
  font-size: 1.75rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0;
}

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

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface-color);
  transition: all var(--transition-normal);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}

.form-control::placeholder {
  color: #94A3B8;
}

.auth-container .btn {
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
  padding: 0.875rem;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-top: 1rem;
  border: 1px solid rgba(239, 68, 68, 0.2);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

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

/* === Responsive Auth === */
@media (max-width: 500px) {
  body.auth-page {
    padding: 1rem;
  }
  .auth-container {
    padding: 2rem 1.5rem;
  }
  .auth-header h1 {
    font-size: 1.5rem;
  }
}