body {
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  color: white;
}

.main-header {
  background-color: rgba(5, 5, 110, 0.8);
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header .logo img {
  height: 40px;
}

.main-header .main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.main-header .main-nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.main-header .main-nav ul li a:hover {
  text-decoration: underline;
}

.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 20px;
  background-image: url("../assets/images/signbackground.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-y: auto;
}

.auth-container .form-box {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  max-width: 400px;
  width: 100%;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

.auth-container h1 {
  color: #004080;
  text-align: center;
  margin-bottom: 15px;
}

.form-box h2 {
  font-size: 1.5rem;
  color: #004080;
  text-align: center;
  margin-bottom: 15px;
}

.form-box label {
  font-weight: bold;
  display: block;
  margin-bottom: 3px;
  color: #333;
}

.form-box input,
.form-box select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-box button {
  background-color: #007bff;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  width: 100%;
  transition: background-color 0.3s;
  position: relative;
}

.form-box button:hover:not(:disabled) {
  background-color: #0056b3;
}

.form-box button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.8;
}

/* Spinner styles */
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.message {
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
  color: red;
}

.hint-message {
  margin-top: -8px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: #666;
}

.auth-switch {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: #333;
}
.auth-switch p {
  margin: 10px 0;
  font-size: 0.9rem;
}

.auth-switch a {
  color: #007bff;
  text-decoration: none;
  margin: 0 5px;
  font-weight: bold;
}
.auth-switch a:hover {
  text-decoration: underline;
}
.auth-switch p span {
  margin-right: 5px;
}

.main-footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  margin-top: 20px;
}

.main-footer a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: bold;
  margin: 0 5px;
}

.main-footer a:hover {
  text-decoration: underline;
  color: #ffd700;
}

.main-footer p {
  margin: 8px 0;
}

.message.success {
  color: #28a745;
}

.message.error {
  color: red;
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .main-header .main-nav {
    width: auto;
  }

  .main-header .main-nav ul {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .auth-container .form-box {
    max-width: 90%;
  }

  .form-box h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: 10px;
  }

  .main-header .logo img {
    height: 30px;
  }

  .main-header .main-nav ul {
    gap: 8px;
  }

  .main-header .main-nav ul li a {
    font-size: 0.9rem;
  }

  .form-box {
    padding: 15px;
  }

  .form-box button {
    font-size: 0.9rem;
  }

  .form-box input,
  .form-box select {
    padding: 8px;
  }

  .spinner {
    width: 10px;
    height: 10px;
    margin-right: 6px;
  }
}

input[readonly],
select:disabled {
  background-color: #f0f0f0;
  cursor: not-allowed;
}
