body {
  background-color: white;
  font-family: Arial, sans-serif;
  background-image: url('../images/background.jpeg');
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

.container {
  max-width: 100%;
  width: 100%;
  padding: 20px;
  background-color: transparent; /* Changed from white to transparent */
  padding-top: 40px;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Slightly increased shadow */
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.logo {
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}

.logo img {
  width: 100%;
  height: auto;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.form-label .required {
  color: #e74c3c;
  margin-left: 4px;
}

.form-label .hint {
  font-weight: normal;
  color: #888;
  font-size: 0.85rem;
  margin-left: 8px;
}

.custom-input {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 12px 15px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
  font-size: 1rem;
  background-color: #f9f9f9;
}

.custom-input:focus {
  border-color: #4CAF50;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.date-input-container {
  position: relative;
}

.date-input-container .custom-input {
  padding-right: 40px;
}

.date-format-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.8rem;
  pointer-events: none;
}

/* Check button styling to match index page */
.login-btn, .check-btn {
  border-radius: 8px;
  padding: 14px;
  font-weight: 600;
  background-color: #e0e0e0;
  border: none;
  color: #666;
  text-transform: none;
  margin-top: 15px;
  transition: all 0.3s ease-in-out;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Match success style from index page */
.login-btn.success, .check-btn.success {
  background-color: #379e40; /* Match the green color from index page */
  color: white;
  box-shadow: 0 4px 8px rgba(55, 158, 64, 0.3);
}

.login-btn.success:hover, .check-btn.success:hover {
  background-color: #2a7e32;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(55, 158, 64, 0.4);
}

.login-btn.valid {
  background-color: #4CAF50;
  color: white;
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.login-btn:active, .check-btn:active {
  transform: scale(0.98);
}

/* Override Bootstrap's default focus styles */
.form-control:focus {
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Mobile optimizations */
@media (max-width: 576px) {
  .container {
    padding-top: 20px; /* Less padding on mobile */
  }

  .login-container {
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Keep shadow on mobile */
  }

  .custom-input {
    padding: 10px 12px;
    font-size: 16px; /* Prevent iOS zoom on focus */
  }

  .form-label {
    font-size: 0.9rem;
  }

  .login-btn, .check-btn {
    padding: 12px;
  }
}

/* Add Bootstrap validation styles */
.is-valid {
  border-color: #28a745 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid {
  border-color: #dc3545 !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
