#login {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  min-height: 74vh;
  padding: 56px 24px;
}

#login form {
  width: 100%;
  max-width: 440px;
  padding: 36px;
  border-radius: 20px;
  position: relative;
  background: rgba(20, 20, 20, 0.65);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);

  box-shadow:
    0 10px 40px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.03);

  display: flex;
  flex-direction: column;
  gap: 18px;
}

#login h1 {
  text-align: center;
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
}

/* Inputs */
#login input {
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: white;
  font-size: 14px;

  outline: none;
  transition: 0.2s ease;
}

#login input::placeholder {
  color: #777;
}

#login input:focus {
  border-color: #1ccdfc;
  box-shadow: 0 0 0 2px rgba(28, 205, 252, 0.2);
  background: rgba(255,255,255,0.06);
}

/* Selects */
#login select {
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: white;
  font-size: 14px;
  outline: none;
  transition: 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231ccdfc' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

#login select:hover {
  border-color: rgba(28, 205, 252, 0.5);
  background-color: rgba(255,255,255,0.07);
}

#login select:focus {
  border-color: #1ccdfc;
  box-shadow: 0 0 0 2px rgba(28, 205, 252, 0.2);
  background-color: rgba(255,255,255,0.08);
}

#login select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#login select option {
  background: rgba(20, 20, 20, 0.95);
  color: white;
  padding: 8px;
}

/* Button */
#login button {
  margin-top: 6px;
  padding: 15px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  cursor: pointer;

  background: radial-gradient(at top right, #539bfc, #1ccdfc);
  color: black;

  transition: 0.25s ease;
}

#login button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(28, 205, 252, 0.3);
}

/* Error message (for AJAX) */
.login-error {
  color: #ff6b6b;
  font-size: 13px;
  text-align: center;
}

#login form::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(120deg, transparent, rgba(28,205,252,0.3), transparent);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.login-status {
  margin-top: 10px;
  font-size: 0.95rem;
  min-height: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.login-status.success {
  color: #00ff99;
}

.login-status.warning {
  color: #ffd369;
}

.login-status.error {
  color: #ff5555;
}