/* login.css */
.login-container {
  max-width: 400px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.login-container h1 {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.login-container .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
}

.login-container .form-group {
  margin-bottom: 25px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  color: #64748b;
}

/* Password visibility toggle */
.password-group {
  position: relative;
}

.password-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.password-wrapper input {
  padding-right: 45px; /* space for the eye button */
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 1.2rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #3b82f6;
}

.password-toggle:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Error message styling */
.error-message {
  margin-top: 15px;
  padding: 12px 16px;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-message i {
  font-size: 1.2rem;
}

/* Dark mode adjustments */
.dark-mode .error-message {
  background-color: #451a1a;
  border-color: #7f1d1d;
  color: #fecaca;
}