/* General Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body, html {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: #f8fff9;
  padding-top: 90px;
  padding-bottom: 50px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 60, 0, 0.9);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  flex-wrap: wrap;
}
.logo-container {
  display: flex;
  align-items: center;
}
.logo {
  height: 100px;
  width: 100px;
  margin-right: 10px;
  margin-top: -15px;
}
.firm-name {
  color: white;
  font-size: 2rem;
  font-weight: bold;
}
nav ul {
  display: flex;
  list-style: none;
  margin-top: 12px;
  gap: 20px;
}
nav ul li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
}
nav ul li a:hover,
nav ul li a.active {
  background-color: #00ff88;
  color: #004400;
}
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* Form Section */
.form-section {
  max-width: 450px;
  margin: 40px auto;
  padding: 30px 40px;
  background-color: #e6f2e6;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 60, 0, 0.1);
}
.form-section h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2d742d;
}
.form-section form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-section input {
  padding: 12px;
  border: 1px solid #a0cfa0;
  border-radius: 6px;
  font-size: 1rem;
}
.form-section button {
  background-color: #028f28;
  color: white;
  padding: 12px;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.form-section button:hover {
  background-color: #026b1f;
}
.message {
  text-align: center;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 3px solid #ccc;
  border-top: 3px solid #028f28;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Password Reset Modal */
.reset-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.reset-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 350px;
  text-align: center;
}
.reset-content h3 {
  margin-bottom: 20px;
}
.reset-content input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
}
.reset-content button {
  background-color: #028f28;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
}
.close-btn {
  margin-top: 15px;
  background-color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 60, 0, 0.95);
    width: 100%;
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
}

.password-container {
  position: relative;
}
.password-container input {
  width: 100%;
  padding-right: 40px;
}
.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
  color: #555;
}
