/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

select {
color: #A3A3A3;

}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: #003366;
  overflow-x: hidden;
  position: relative;
}

/* Starfield Background */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.shooting-star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(45deg, #fff, transparent);
  border-radius: 50%;
  animation: shoot 4s linear infinite;
}

@keyframes shoot {
  0% {
    transform: translateX(-100px) translateY(100px);
    opacity: 1;
  }
  100% {
    transform: translateX(100vw) translateY(-100px);
    opacity: 0;
  }
}

/* Help Button inside form */
.help-btn2 {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(0, 51, 102, 1);
  color: #003366;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.help-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(0, 51, 102, 1);
  color: #003366;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.help-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.help-btn i {
  font-size: 16px;
}

/* Logo Container */
.logo-container {
  margin-bottom: 10px;
}

.logo-icon {
  width: 100px;
  height: 80px;
/*  border-radius: 50%;*/
  background: transparent;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Login Container */
.login-container {
  background:  #EEEEEE;
/*  backdrop-filter: blur(15px);*/
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 30px 40px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  color:#003366;
}

.login-header {
  margin-bottom: 30px;
}

.login-title {
  color: #003366;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-subtitle {
  color: rgba(0, 51, 102, 0);
  font-size: 14px;
  margin-bottom: 0;
}

/* Form Styles */
.form-label {
  color: #003366;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-control {
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(0, 51, 102, 1);
  border-radius: 20px;
  color: #003366;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  color: #003366;
}

.form-control::placeholder {
  color: rgba(0, 51, 102, 0.6);
}

.input-group-text {
  background: rgba(0, 51, 102, 0);
  border: 1px solid rgba(0, 51, 102, 1);
  color: rgba(0, 51, 102, 1);
  border-radius: 10px 0 0 10px;
}

/*.input-group-text i{
  background: rgba(0, 51, 102, 0);
  border: 1px solid rgba(0, 51, 102, 1);
  color: rgba(0, 0, 0, 1);
  border-radius: 10px 0 0 10px;
}*/

.input-group .form-control {
  border-radius: 0 10px 10px 0;
}

.input-group .btn {
  border-radius: 0 10px 10px 0;
}

/* Button Styles */
.btn-login {
  background: linear-gradient(135deg, #0054AD, #0056b3);
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
  background: linear-gradient(135deg, #0056b3, #004085);
}

.btn-outline-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 51, 102, 1);
  color: rgba(0, 51, 102, 1);
  border-radius: 0 10px 10px 0;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(0, 51, 102, 1);
  color: rgba(0, 51, 102, 1);
}

/* Form Check */
.form-check-input {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 51, 102, 1);
}

.form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.form-check-label {
  color: rgba(0, 51, 102, 1);
  font-size: 14px;
}

/* Links */
.forgot-password {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.forgot-password:hover {
  color: #007bff;
  text-decoration: none;
}

/* Modal Styles */
.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  color: #333;
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
  color: #333;
  font-weight: 600;
}

.help-content h6 {
  color: #007bff;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 8px;
}

.help-content h6:first-child {
  margin-top: 0;
}

.help-content p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .help-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .logo-icon {
    width: 120px;
    height: 120px;
  }

  .login-container {
    padding: 30px 20px;
    margin: 20px;
  }

  .login-title {
    font-size: 24px;
  }

  .login-subtitle {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .help-btn span {
    display: none;
  }

  .logo-icon {
    width: 100px;
    height: 100px;
  }

  .login-container {
    padding: 25px 15px;
  }

  .login-title {
    font-size: 20px;
  }
}

/* Loading Animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading .btn-login {
  position: relative;
}

.loading .btn-login::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Additional Links */
.additional-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.register-link{
  color: rgba(0, 51, 102, 1);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.register-link2 {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.register-link:hover,
.contact-link:hover {
  color: #007bff;
  text-decoration: none;
  transform: translateY(-1px);
}

.separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

/* Responsive adjustments for additional links */
@media (max-width: 480px) {
  .additional-links {
    flex-direction: column;
    gap: 5px;
  }

  .separator {
    display: none;
  }
}
