/* --- Scan Manager Login Overlay Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
}
.login-overlay {
  position: relative;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #121212;
  background: linear-gradient(-45deg, #292929, #3a3a3a, #4c4c4c, #333333);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  overflow: hidden;
}

.login-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
  animation: pulse 4s infinite;
}

.floating-wrapper {
  animation: float 6s ease-in-out infinite;
}

.login-container {
  background-color: #121212;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.login-container.visible {
  opacity: 1;
}

.login-container h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(255,165,0,0.5);
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.login-input-container {
  position: relative;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.login-input-container:hover {
  transform: translateY(-5px);
}

.login-input {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1rem 1rem 3.2rem;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background-color: #1e1e2f;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  box-sizing: border-box;
}

.login-input:focus {
  outline: none;
  border-color: #ff8c00;
  background-color: #1e1e2f;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.3);
  transform: scale(1.02);
}

.login-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.login-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ff8c00;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.login-input:focus + .login-icon {
  color: #fff;
  transform: translateY(-50%) scale(1.2);
}

.login-btn {
  background: linear-gradient(45deg, #ff8c00, #ff4500);
  color: #fff;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  box-shadow: 0 5px 15px rgba(255,140,0,0.4);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.login-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255,140,0,0.6);
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.error-message {
    color: #ff4444;
    margin-top: 1.5rem;
    display: none;
    font-size: 1rem;
    padding: 0.8rem;
    background-color: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    animation: shake 0.5s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 3s infinite;
}

.ticket-comments {
  flex: 1 1 auto;
  height: 100%;
  max-height: 320px;
  overflow-y: auto;
}

.ticket-expanded-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
}