/* Login Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.login-modal {
  background: white;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 380px;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .login-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  border: none;
  background: none;
}

.login-modal h2 {
  color: #4a90e2;
  margin-bottom: 10px;
}

.login-modal p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.modal-input-group {
  position: relative;
  margin-bottom: 20px;
}

.modal-input {
  width: 100%;
  padding: 15px;
  padding-right: 45px;
  border: 2px solid #f1f2f6;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
}

.modal-input:focus {
  border-color: #4a90e2;
}

.modal-toggle-view {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
}

.modal-login-btn {
  width: 100%;
  padding: 15px;
  background: #4a90e2;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-login-btn:hover {
  background: #357abd;
}
