body {
  background-image: url("../Images/loginWallpaper.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.bg_card {
  background: linear-gradient(135deg, rgba(237, 20, 91, 0.25), rgba(247, 148, 30, 0.25));
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
}

.container_card {
  padding-top: 5%;
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 85%;
  min-width: 100%;
  height: 100%;
}

.border_right {
  border-right: 4px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

.logo {
  height: auto;
  max-width: 40%;
  object-fit: contain;
  margin: auto;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.logo_align {
  margin: auto;
  padding-top: 10%;
  padding-bottom: 10%;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}


.nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.nav-item {
  position: relative;
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background-color: #ED145B;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
}

.nav-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  background-color: #F7941E;
}

.nav-item:hover::before {
  left: 100%;
}

.nav-item.active {
  background-color: #F7941E;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.nav-item:focus {
  outline: none;
}

#canvas-container {
  width: 100%;
  height: 10em;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

#three-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1 !important;
}

.custom-select {
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(237, 20, 91, 0.5);
  border-radius: 20px;
  color: #333;
  font-weight: 600;
  padding: 8px 15px;
  transition: all 0.3s ease;
}

.custom-select:focus {
  box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.4);
  outline: none;
}

.input-group-text {
  background-color: #ED145B;
  border: none;
  color: white;
  width: 50px;
  justify-content: center;
}

.input-group-lg .form-control {
  border-radius: 0 25px 25px 0;
  border: none;
  font-size: 1rem;
  padding: 12px 20px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.input-group-lg .input-group-text {
  border-radius: 25px 0 0 25px;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.3);
  border: none;
}

.btn-success {
  background: linear-gradient(135deg, #ED145B, #F7941E);
  border: none;
  padding: 12px;
  font-weight: 600;
  border-radius: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-success:hover {
  background: linear-gradient(135deg, #F7941E, #ED145B);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.form-check-label {
  color: white;
  font-size: 0.9rem;
}

.form-check-input {
  cursor: pointer;
}

.spacer1 {
  max-width: 150px;
  display: inline-block;
  vertical-align: middle;
}

/* Responsive Media Queries (unchanged, only cosmetic) */
@media (max-width: 1200px) {
  .nav-item {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
}

@media (max-width: 992px) {
  .logo_align {
    padding-top: 6%;
    padding-bottom: 6%;
  }

  .logo {
    width: 30%;
    /* Slightly smaller on medium screens */
  }

  .nav-row {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container_card {
    padding-top: 4%;
    max-width: 95%;
  }

  .border_right {
    border-right: 2px solid rgba(230, 232, 231, 0.5);
  }

  .nav-row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav-item {
    padding: 8px 15px;
    font-size: 0.8rem;
    margin: 4px;
    flex: 0 0 auto;
  }

  .input-group-lg .form-control,
  .input-group-lg .input-group-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .container_card {
    padding-top: 3%;
    max-width: 100%;
  }

  .bg_card {
    border-radius: 15px;
  }

  .border_right {
    border-right: none;
    border-bottom: 2px solid rgba(230, 232, 231, 0.5);
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .logo_align {
    padding-top: 3%;
    padding-bottom: 3%;
  }

  .logo {
    width: 20%;
    /* Smaller still on mobile */
  }

  .nav-row {
    flex-direction: column;
    align-items: center;
  }

  .nav-item {
    width: 100%;
    max-width: 200px;
    margin: 4px 0;
    text-align: center;
  }

  #canvas-container {
    height: 8em;
  }
}

@media (max-width: 480px) {
  .container_card {
    padding-top: 2%;
  }

  .input-group-lg .form-control {
    font-size: 0.85rem;
  }
}

/* Animation for better UX */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.row {
  animation: fadeIn 0.5s ease-out;
}

/* Error message styling */
#user-login-status {
  color: #ffcc00;
  font-size: 0.9rem;
  text-align: center;
  display: block;
  margin-top: 10px;
}


/* Enhanced Remember Me styling */
.remember-me-wrapper {
  background: linear-gradient(to right, rgba(237, 20, 91, 0.15), rgba(247, 148, 30, 0.15)) !important;
  border-radius: 12px !important;
  padding: 10px 15px !important;
  margin-bottom: 20px !important;
  position: relative !important;
  border: 1px dashed rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

.remember-me-wrapper:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(247, 148, 30, 0.3) !important;
  background: linear-gradient(to right, rgba(237, 20, 91, 0.25), rgba(247, 148, 30, 0.25)) !important;
}

.form-check-label {
  font-weight: 600 !important;
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
}

.form-check-input {
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-right: 12px !important;
}

.form-check-input:checked {
  filter: drop-shadow(0 0 3px rgba(247, 148, 30, 0.7)) !important;
}

.security-badge {
  font-size: 0.75rem !important;
  background: rgba(247, 148, 30, 0.9) !important;
  color: white !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
  margin-left: 10px !important;
  font-weight: 700 !important;
  animation: pulse 2s infinite !important;
}

.remember-tip {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin-top: 5px !important;
  margin-left: 35px !important;
}

@keyframes pulse {
  0% {
    transform: scale(1) !important;
    opacity: 1 !important;
  }

  50% {
    transform: scale(1.05) !important;
    opacity: 0.9 !important;
  }

  100% {
    transform: scale(1) !important;
    opacity: 1 !important;
  }
}

.security-icon {
  margin-right: 5px !important;
  animation: rotateIcon 8s linear infinite !important;
}

@keyframes rotateIcon {
  from {
    transform: rotate(0deg) !important;
  }

  to {
    transform: rotate(360deg) !important;
  }
}