.login-main {
  padding: 2.5rem 1rem 6rem 1rem;
  background: var(--bg);
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-section {
  display: flex;
  justify-content: center;
  width: 100%;
}

.login-container {
  width: 100%;
  max-width: 450px;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 12px var(--border);
  padding: 2.5rem 2rem;
}

.login-container h1 {
  margin: 0 0 0.75rem 0;
  color: var(--text);
  text-align: center;
  font-size: 2rem;
}

.login-description {
  color: var(--muted-text);
  text-align: center;
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--input-border);
  border-radius: 6px;
  padding: 0.75rem 0.8rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  transition: color 0.2s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle:focus {
  outline: none;
  color: var(--primary);
}

.toggle-icon {
  width: 20px;
  height: 20px;
  user-select: none;
  pointer-events: none;
  color: #f5f5f5;
}

.toggle-icon-show,
.toggle-icon-hide {
  color: #f5f5f5;
}

/* Error Message */
.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  text-align: center;
}

/* Submit Button */
.submit-btn {
  background: linear-gradient(90deg, var(--header-bg) 0%, var(--primary) 100%);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(90deg, var(--primary) 0%, var(--header-bg) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.signup-link {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--muted-text);
}

.signup-link a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .login-container {
    padding: 2rem 1.5rem;
  }

  .login-container h1 {
    font-size: 1.75rem;
  }
}


