/* static/css/login.css */

.login-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.login-popup {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  color: white;
}

.login-popup h2 {
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.login-popup .input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}

.login-popup .country-code {
  font-size: 1rem;
  margin-right: 0.5rem;
}

.login-popup #phone-number {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 1rem;
}

.login-popup #phone-number::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.login-popup #send-otp-button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background-color: var(--primary-purple);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.login-popup #send-otp-button:disabled {
  background-color: #ccc;
  opacity: 0.5;
  cursor: not-allowed;
}

.login-popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}
