* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
}

/* Header/Navigation */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #54b0df;
}

.login-btn {
  background: #54b0df;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.login-btn:hover {
  background: #3a93c3;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.login-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
}
.login-header p {
  font-size: 20px;
  margin-bottom: 10px;
  color: #8a7626;
}

.login-header .logo img {
  width: 100%;
  max-width: 150px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 16px;
}

.login-button {
  width: 100%;
  padding: 12px;
  background: #54b0df;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 15px;
}

.login-button:hover {
  background: #3a93c3;
}

.or-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: #ccc;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #ccc;
}

.or-divider span {
  padding: 0 15px;
}

.register-button {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #54b0df;
  border: 2px solid #54b0df;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.register-button:hover {
  background: rgba(84, 176, 223, 0.1);
}

.register-link {
  text-align: center;
  margin-top: 20px;
  color: #ccc;
}

.register-link a {
  color: #54b0df;
  text-decoration: none;
  font-weight: bold;
}

.register-link a:hover {
  text-decoration: underline;
}

.forgot-password {
  display: block;
  text-align: center;
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
}

.forgot-password:hover {
  color: #fff;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  text-align: center;
}

.footer-nav {
  margin-bottom: 15px;
}

.footer-nav a {
  color: #ccc;
  margin: 0 10px;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  color: #fff;
}

.copyright {
  color: #999;
  font-size: 14px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  background: #333;
  color: #fff;
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.success {
  background: #4caf50;
}

.toast.error {
  background: #f44336;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .header {
    padding: 15px 20px;
    flex-direction: column;
  }

  .logo-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .login-btn {
    display: none;
  }

  .login-container {
    padding: 30px 20px;
    margin: 0 10px;
  }

  .login-header h2 {
    font-size: 24px;
  }

  .footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-nav a {
    margin: 5px 10px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 10px 15px;
  }

  .logo {
    font-size: 22px;
  }

  .login-container {
    padding: 25px 15px;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 14px;
  }

  .login-button,
  .register-button {
    padding: 10px;
    font-size: 14px;
  }
}

/* Mobile menu styles */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 32, 39, 0.95);
  z-index: 1000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-links {
  list-style: none;
  text-align: center;
}

.mobile-menu-links li {
  margin: 20px 0;
}

.mobile-menu-links a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: color 0.3s;
}

.mobile-menu-links a:hover {
  color: #54b0df;
}

/* Password field with toggle icon */
.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 16px;
}

.password-toggle:hover {
  color: #333;
}

/* Adjust input padding to accommodate the icon */
.password-container input {
  padding-right: 40px;
}
