/* login.css */
/* Modal container - full screen, centered */

.modal {
  display: none; /* Hidden by default, shown with JS */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.65); /* Semi-transparent dark */
  justify-content: center;
  align-items: center;
}

#loginModal { display: none; }

/* Modal content box */
.modal-content {
  background: #181818;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  width: 90%;
  max-width: 400px;
  color: #eee;
  position: relative;
  animation: modalIn 0.2s cubic-bezier(.44,2,.46,.6);
}

@keyframes modalIn {
  from { transform: translateY(-40px) scale(0.96); opacity: 0;}
  to   { transform: translateY(0) scale(1); opacity: 1;}
}

/* Close button (X) */
.close {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  color: #aaa;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover { color: #f66; }

/* Headline */
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

/* Inputs */
.modal-content input[type="text"],
.modal-content input[type="password"] {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.5rem;
  background: #252525;
  color: #fafafa;
  font-size: 1rem;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}
.modal-content input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #6cf;
}

/* Login button */
.modal-content button[type="submit"] {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 0.5rem;
  background: linear-gradient(90deg, #3a8fff 60%, #6cf 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(60,180,255,0.07);
  transition: background 0.2s, transform 0.15s;
}
.modal-content button[type="submit"]:hover {
  background: linear-gradient(90deg, #66c6ff 60%, #3a8fff 100%);
  transform: translateY(-2px) scale(1.03);
}

/* Error message */
.modal-content .error {
  background: #ff3344;
  color: #fff;
  padding: 0.7rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 6px rgba(255,51,68,0.1);
}

/* Responsive for small screens */
@media (max-width: 600px) {
  .modal-content {
    padding: 1.1rem;
    max-width: 96vw;
  }
  .close { right: 0.8rem; top: 0.8rem; }
}
