/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8fff9;
  height: 100%;
  color: #2d742d;
  padding-top: 90px;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 60, 0, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 80px;
  margin-right: 10px;
  width: 80px;
}

.firm-name {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  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;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* MAIN REGISTER FORM */
main {
  max-width: 400px;
  margin: 80px auto 100px;
  background: #e6f2e6;
  padding: 20px;
  
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 60, 0, 0.1);
}

.register-container h2 {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 0px;
}

form input, form button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

form button {
  background: #2d742d;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

#otpSection {
  display: none;
  margin-top: 15px;
}

#message {
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 60px;
}

.login-link a {
  color: #2d742d;
  font-weight: 600;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 15px 0;
  background-color: rgba(0, 60, 0, 0.9);
  color: white;
  font-size: 0.9rem;
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* 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;
  }
}
.login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
}

.login-link a {
  color: #2d742d;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #2d742d;
  transition: color 0.3s ease;
}

.login-link a:hover {
  color: #004400;
  border-bottom: 1px solid #004400;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  flex: 1;
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  user-select: none;
}
