/* css/signup-popup.css */

/* Modal background */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

.modal-overlay.visible {
  opacity: 1;
  display: block;
}

/* Modal content */
.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background-color: #000000;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -55%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: transform, opacity;
  color: #ffffff;
}

.modal-overlay.visible .modal-content {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Modal header */
.modal-header {
  padding: 15px 20px;
  background-color: #000000;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Close button */
.close-button {
  background: none;
  border: none;
  color: #999;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-button:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Modal body */
.modal-body {
  padding: 20px;
  position: relative;
  min-height: 280px;
}

/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
}

.tab {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 0;
  color: #999;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.tab:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.2s;
}

.tab.active {
  color: #fff;
}

.tab.active:after {
  background-color: #ff8c00;
}

.tab:hover {
  color: #fff;
}

/* Form styling */
.form-container {
  display: none;
  position: absolute;
  top: 70px;
  left: 20px;
  right: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  will-change: opacity, transform;
}

.form-container.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background-color: #111111;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #ff8c00;
  box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.form-control::placeholder {
  color: #666;
}

/* Submit button */
.submit-button {
  width: 100%;
  padding: 12px 0;
  background-color: #ff8c00;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.submit-button:hover {
  background-color: #ff9d2f;
}

.submit-button:active {
  transform: scale(0.98);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal-content {
    width: 95%;
  }
  
  .modal-header {
    padding: 12px 15px;
  }
  
  .modal-body {
    padding: 15px;
    min-height: 260px;
  }
  
  .form-container {
    top: 65px;
    left: 15px;
    right: 15px;
  }
  
  .form-control {
    padding: 10px 12px;
  }
}

/* Error message styling */
.form-error {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 5px;
  display: none;
}

.form-error.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Body state when modal is open - keeps scrollbar visible */
body.modal-open {
  pointer-events: none; /* Disable interactions with the background */
}

/* But allow interactions with the modal itself */
.modal-overlay {
  pointer-events: auto;
} 
