/* Global reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Work Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.466),
      rgba(88, 88, 88, 0.9)
    ),
    url("../img/login-bg.png");

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Login container */
.login-container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.login-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px 35px;
  box-shadow: 0 15px 35px #1118271a;
  border: 1px solid #e5e7eb;
  max-width: 474px;
  width: 100%;
  margin: 0 auto;
}

.brand-title {
  color: #459052;
  font-size: 4.2rem;
  font-weight: bold;
  font-weight: 700;
  text-align: left;
  letter-spacing: 1px;
}

.welcome-text {
  color: #374151;
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  margin-bottom: 4px;
}

.subtitle {
  color: #6b7280;
  text-align: left;
  margin-bottom: 30px;
  font-size: 1.4rem;
}

.form-group {
  margin-top: 16px;
  margin-bottom: 24px;
}

.form-group label {
  color: #4a5568;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
  display: block;
}

.form-control {
  height: 42px;
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: #fcfcfd;
  box-sizing: border-box;
}
.password-field .form-control {
  padding-right: 48px; /* adjust to match toggle width + spacing */
}

/* Keyboard focus for the toggle */
.password-toggle:focus-visible {
  outline: 2px solid #27522e;
  outline-offset: 2px;
  border-radius: 4px; /* helps visible focus box */
}

.form-control:focus {
  border-color: #52b788;
  box-shadow: 0 0 0 4px rgba(82, 183, 136, 0.15);
  background: #ffffff;
  outline: none;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #718096;
  cursor: pointer;
  padding: 0;
  font-size: 18px;
}

.password-toggle:hover {
  color: #459052;
}

.checkbox-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #2d3748;
}

.remember-me input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
}

.remember-me label {
  margin-bottom: 0;
  font-weight: 400;
}

.forgot-password {
  color: #27522e; /* darker for contrast */

  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.forgot-password:hover {
  color: #27522e;
  text-decoration: underline;
}
/* Keyboard focus */
.forgot-password:focus-visible {
  outline: 2px solid #27522e;
  outline-offset: 2px;
  text-decoration: underline;
}

.login-btn {
  margin-top: 24px;
  width: 100%;
  height: 45px;
  background: #459052;
  border: none;
  border-radius: 10000px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn:hover {
  background: #27522e;
  cursor: pointer;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(82, 183, 136, 0.3);
  color: white;
}

.login-btn:focus-visible {
  outline: 2px solid #27522e;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.3);
}

.login-btn i {
  margin-left: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-form {
    margin: 0 15px;
    padding: 30px 25px;
  }

  .brand-title {
    font-size: 3rem;
  }

  .welcome-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .login-form {
    padding: 25px 20px;
  }

  .checkbox-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .brand-title {
    font-size: 1.8rem;
    text-align: left;
    font-weight: bold;
  }
}
