/**
 * Sign-up page styles
 */

/* Layout */
.main-content-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  max-width: 60%;
  margin: 0 auto;
  gap: 2rem;
  position: relative;
  z-index: 10;
}

.left-column {
  flex: 0.6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 60vh;
  position: relative;
  z-index: 11;
  pointer-events: auto;
}

.right-column {
  flex: 1.4;
}

.login-card {
  max-height: 80vh;
  overflow-y: auto;
  max-width: 100%;
  margin: 0;
}

/* Form */
.form-group {
  margin-bottom: 0;
}

.form-group .form-label {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group .input-group {
  margin-bottom: 0.25rem;
}

.row {
  margin-bottom: 0.5rem;
}

.col-md-6 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.btn-login {
  margin-top: 1rem;
}

.login-header {
  margin-bottom: 2rem;
  position: relative;
  z-index: 12;
  pointer-events: auto;
}

.login-footer {
  margin-top: 2rem;
  position: relative;
  z-index: 12;
  pointer-events: auto;
}

.login-header a,
.login-footer a {
  position: relative;
  z-index: 13;
  pointer-events: auto;
}

/* Select styling for dark theme */
.form-control select,
select.form-control {
  background-color: rgba(26, 26, 26, 0.95) !important;
  color: white !important;
  border: 1px solid rgba(255, 142, 49, 0.3) !important;
}

.form-control select:focus,
select.form-control:focus {
  background-color: rgba(26, 26, 26, 0.95) !important;
  color: white !important;
  border-color: var(--main-color-zion-orange) !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 142, 49, 0.25) !important;
}

.form-control select option,
select.form-control option {
  background-color: rgba(26, 26, 26, 0.95) !important;
  color: white !important;
  padding: 0.5rem;
}

.form-control select option:hover,
select.form-control option:hover {
  background-color: rgba(255, 142, 49, 0.2) !important;
  color: white !important;
}

/* Privacy policy checkbox */
.form-check-input {
  background-color: rgba(26, 26, 26, 0.95) !important;
  border: 2px solid rgba(255, 142, 49, 0.5) !important;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.2rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--main-color-zion-orange) !important;
  border-color: var(--main-color-zion-orange) !important;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 142, 49, 0.25) !important;
  border-color: var(--main-color-zion-orange) !important;
}

.form-check-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  cursor: pointer;
}

.form-check-label a {
  color: var(--main-color-zion-orange);
  font-weight: 600;
  text-decoration: underline;
}

.form-check-label a:hover {
  color: #ff9f40;
  text-decoration: underline !important;
}

/* Button disabled state */
.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(255, 142, 49, 0.5), rgba(230, 126, 34, 0.5)) !important;
}

.btn-login:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Flash messages */
.sign-up-flash-container {
  position: fixed;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 90%;
  width: 400px;
}

/* Privacy/terms form group */
.sign-up-privacy-group {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Countdown hint */
#countdownHint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Terms modal */
.sign-up-terms-modal .modal-content {
  background: rgba(26, 26, 26, 0.98);
  border: 1px solid rgba(255, 142, 49, 0.3);
}

.sign-up-terms-modal .modal-header {
  border-bottom: 1px solid rgba(255, 142, 49, 0.3);
}

.sign-up-terms-modal .modal-title {
  color: var(--main-color-zion-orange) !important;
}

.sign-up-terms-modal .modal-footer {
  border-top: 1px solid rgba(255, 142, 49, 0.3);
}

.sign-up-terms-modal .terms-modal-body {
  max-height: 50vh;
  overflow-y: auto;
  color: rgba(255, 255, 255, 0.9);
}

#termsModalCloseBtn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

#termsModalFooterCloseBtn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

#termsScrollHint {
  color: rgba(255, 142, 49, 0.9);
}

/* Terms modal content - matches privacy-policy.html styling */
.terms-modal-body .privacy-content {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 0.9rem;
}

.terms-modal-body .privacy-content h2 {
  color: var(--main-color-zion-orange);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 142, 49, 0.2);
}

.terms-modal-body .privacy-content .privacy-content-section-title {
  font-size: 1.8rem;
}

.terms-modal-body .privacy-content h3 {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.terms-modal-body .privacy-content p {
  margin-bottom: 0.75rem;
  text-align: justify;
}

.terms-modal-body .privacy-content ul {
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.terms-modal-body .privacy-content li {
  margin-bottom: 0.4rem;
  list-style-type: none;
  position: relative;
  padding-left: 1.25rem;
}

.terms-modal-body .privacy-content li:before {
  content: "▸";
  color: var(--main-color-zion-orange);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.terms-modal-body .privacy-content strong {
  color: white;
  font-weight: 600;
}

.terms-modal-body .privacy-content a {
  color: var(--main-color-zion-orange);
}

.terms-modal-body .privacy-content a:hover {
  text-decoration: underline;
}

.terms-modal-body .privacy-content .section-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.terms-modal-body .privacy-content .regional-header {
  background: linear-gradient(135deg, rgba(255, 142, 49, 0.2), rgba(255, 142, 49, 0.05));
  padding: 0.75rem;
  border-radius: 10px;
  border-left: 4px solid var(--main-color-zion-orange);
  margin: 1.5rem 0 0.75rem 0;
}

.terms-modal-body .privacy-content .contact-info {
  background: rgba(255, 142, 49, 0.1);
  padding: 0.75rem;
  border-radius: 10px;
  margin-top: 0.75rem;
  text-align: center;
}

.terms-modal-body .privacy-content .contact-info a {
  color: var(--main-color-zion-orange);
  text-decoration: none;
  font-weight: 600;
}

.terms-modal-body .privacy-content .contact-info a:hover {
  text-decoration: underline;
}

/* Highlight text (e.g. "Event" in subtitle) */
.text-zion-orange {
  color: var(--main-color-zion-orange);
}

/* Responsive */
@media (max-width: 1024px) {
  .main-content-container {
    max-width: 80%;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-content-container {
    flex-direction: column;
    max-width: 90%;
    gap: 1rem;
  }

  .left-column {
    min-height: auto;
    order: 1;
  }

  .right-column {
    order: 2;
  }

  .login-header {
    text-align: center;
    margin-bottom: 1rem;
  }

  .login-footer {
    text-align: center;
    margin-top: 1rem;
  }

  .col-md-6 {
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1rem;
  }
}
