/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Top bar */
.top-bar {
  background-color: purple;
  color: white;
  height: 4vh;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 14px;
}

/* Navbar */
.navbar {
  background-color: white;
  padding: 0px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 3px;
  height: 100%;
}

.logo-header img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-header span {
  font-weight: bold;
  font-size: 20px;
  color: black;
}

.menu-desktop a {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
}

/* Login Form */
.login-container {
  max-width: 400px;
  margin: 30px auto;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #444;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.submit-btn {
  width: 100%;
  background-color: #3399ff;
  color: white;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn:hover {
  background-color: #2288e0;
}

#resultMessage {
  text-align: center;
  margin-top: 15px;
  font-weight: bold;
}

/* Login Links */
.login-links {
  margin-top: 20px;
  text-align: left;
  font-size: 14px;
}

.login-links a {
  color: #007BFF;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.modal-content .close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 24px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-desktop {
    display: none;
  }
}