/* Authentication Modal Styles */

.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.auth-modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 0.5rem;
  line-height: 1;
}

.auth-modal-close:hover {
  color: #000;
}

.auth-modal h2 {
  color: #1e3c72;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: #2c3e50;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input {
  padding: 0.8rem;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #2a5298;
}

.form-error {
  display: none;
  background: #fee;
  color: #c33;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.auth-submit {
  padding: 1rem;
  background: #2a5298;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.5rem;
}

.auth-submit:hover {
  background: #1e3c72;
}

.auth-submit:disabled {
  background: #999;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.auth-switch button {
  background: none;
  border: none;
  color: #2a5298;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.auth-switch button:hover {
  color: #1e3c72;
}

.auth-button-container {
  margin: 1rem 0;
}

/* Promo Code Input */
.promo-code-input {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.promo-code-input input {
  flex: 1;
  padding: 0.6rem;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
}

.promo-code-input button {
  padding: 0.6rem 1rem;
  background: #27ae60;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

.promo-code-input button:hover {
  background: #229954;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-modal-content {
    padding: 1.5rem;
  }

  .auth-modal h2 {
    font-size: 1.5rem;
  }
}

