/* Custom Signup Modal Styles */

.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  animation: fadeIn 0.3s ease-out;
  font-family: 'Poppins', sans-serif;
}

.custom-modal.show {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5vh;
}

.custom-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.custom-modal-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  animation: slideIn 0.3s ease-out;
}

.custom-modal-content {
  display: flex;
  background: linear-gradient(135deg, #1a0029 0%, #2d1f3d 100%);
  border: 1px solid rgba(20, 255, 228, 1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 212, 170, 0.4);
  min-height: 500px;
}

.custom-modal-left {
  flex: 1;
  position: relative;
  background: url("../../images/signup-bg.jpg") center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  overflow: hidden;
}

/* Login modal specific background */
#loginModal .custom-modal-left {
  background: url("../../images/login-bg.jpg") center center / cover no-repeat;
}

.custom-modal-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.custom-modal-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 40px 30px 30px;
  text-align: center;
}

.custom-modal-title {
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.custom-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.custom-modal-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.custom-modal-right {
  flex: 1;
  background: linear-gradient(135deg, #1a0029 0%, #2d1f3d 100%);
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
}

.custom-modal-form {
  padding: 40px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

.custom-form-title {
  color: white;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0;
}

.custom-form-subtitle {
  color: #00d4aa;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  margin-top: 0.25rem;
}

.custom-email-btn {
  background-color: #14ffe4;
  border: none;
  color: #000;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.custom-email-btn:hover {
  box-shadow:0 0 14px rgba(20,255,228,.7);
}

/* Email Form Styles */
.custom-email-form-group {
  margin-bottom: 25px;
  text-align: left;
}

.custom-email-label {
  display: block;
  color: #cfcfcf;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.custom-email-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.custom-email-icon {
  position: absolute;
  left: 12px;
  color: #14ffe4;
  font-size: 1rem;
  z-index: 2;
}

.custom-email-input {
  width: 100%;
  padding: 12px 15px 12px 40px;
  border: 1px solid rgba(20, 255, 228, 0.35);
  border-radius: 10px;
  background: #0e0716 !important;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Autocomplete styling - #0e0716 background with white text */
.custom-email-input:-webkit-autofill,
.custom-email-input:-webkit-autofill:hover,
.custom-email-input:-webkit-autofill:focus,
.custom-email-input:-webkit-autofill:active,
.custom-email-input:-internal-autofill-selected {
  -webkit-box-shadow: 0 0 0 30px #0e0716 inset !important;
  box-shadow: 0 0 0 30px #0e0716 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: #0e0716 !important;
  background: #0e0716 !important;
  background-image: none !important;
  border: 1px solid rgba(20, 255, 228, 0.35) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background-color 5000s ease-in-out 0s;
}

.custom-email-input:-webkit-autofill:focus {
  border-color: #14ffe4 !important;
  box-shadow: 0 0 0 2px rgba(20, 255, 228, 0.2) !important;
}

/* Autocomplete dropdown styling for email input */
input.custom-email-input:-webkit-autofill::first-line {
  color: #fff !important;
  font-size: 1rem !important;
}

/* Style the browser autocomplete dropdown list for email input */
input.custom-email-input::-webkit-contacts-auto-fill-button,
input.custom-email-input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}

/* Additional autocomplete overrides for email input */
input.custom-email-input:-webkit-autofill,
input.custom-email-input:-webkit-autofill:hover,
input.custom-email-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0e0716 inset !important;
  box-shadow: 0 0 0 1000px #0e0716 inset !important;
  background-color: #0e0716 !important;
  background: #0e0716 !important;
  background-image: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  border: 1px solid rgba(20, 255, 228, 0.35) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Force override Chrome's internal autofill-selected for email input */
input:-internal-autofill-selected,
input.custom-email-input:-internal-autofill-selected,
.custom-email-input:-internal-autofill-selected {
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0 0 1000px #0e0716 inset !important;
  box-shadow: 0 0 0 1000px #0e0716 inset !important;
  background-color: #0e0716 !important;
  background: #0e0716 !important;
  background-image: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  border: 1px solid rgba(20, 255, 228, 0.35) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background-color 9999s ease-in-out 0s;
}

.custom-email-input:focus {
  outline: none;
  border-color: #14ffe4;
  box-shadow: 0 0 0 2px rgba(20, 255, 228, 0.2);
  background: #0e0716 !important;
}

.custom-email-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.custom-email-input.error,
.custom-email-input.error:focus {
  border-color: rgba(20, 255, 228, 0.35);
  background: #0e0716 !important;
  box-shadow: none;
}

.custom-email-input.error:-webkit-autofill,
.custom-email-input.error:-webkit-autofill:hover,
.custom-email-input.error:-webkit-autofill:focus,
.custom-email-input.error:-webkit-autofill:active,
.custom-email-input.error:-internal-autofill-selected {
  -webkit-box-shadow: 0 0 0 30px #0e0716 inset !important;
  box-shadow: 0 0 0 30px #0e0716 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: #0e0716 !important;
  background: #0e0716 !important;
  background-image: none !important;
  border: 1px solid rgba(20, 255, 228, 0.35) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background-color 5000s ease-in-out 0s;
}

.custom-email-error {
  color: #14ffe4;
  font-size: 0.85rem;
  margin-top: 5px;
  min-height: 20px;
  text-align: left;
}

/* Hide empty error containers to prevent gaps */
.custom-email-error:empty {
  display: none;
  min-height: 0;
  margin-top: 0;
}

/* Navigation Buttons */
.custom-modal-nav-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.custom-back-btn,
.custom-next-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.custom-back-btn {
  background: #333;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-back-btn:hover {
  background: #555;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.custom-next-btn {
  background: #14ffe4;
  color: #000;
}

.custom-next-btn:hover {
  box-shadow:0 0 14px rgba(20,255,228,.7);
}

.custom-next-btn i,
.custom-back-btn i {
  font-size: 0.85rem;
}

/* Password Step Styles */
.custom-password-info {
  margin-bottom: 25px;
  text-align: left;
}

.custom-password-label {
  color: #cfcfcf;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 5px 0;
}

.custom-password-email {
  color: #14ffe4 !important;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 15px;
  margin-top: 5px;
}

.custom-password-message {
  color: #8b5fbf;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.custom-send-reset-btn {
  width: 100%;
  background: #14ffe4;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.custom-send-reset-btn:hover {
  box-shadow: 0 0 14px rgba(20,255,228,.7);
}

.custom-send-reset-btn i {
  font-size: 0.9rem;
}

.custom-resend-btn {
  width: 100%;
  background: #8b5fbf;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.custom-resend-btn:hover {
  background: #a866e3;
  box-shadow: 0 2px 8px rgba(139, 95, 191, 0.4);
  transform: translateY(-1px);
}

.custom-resend-btn i {
  font-size: 0.9rem;
}

/* Form State Transitions */
.custom-modal-form {
  transition: opacity 0.3s ease;
}

.custom-modal-form-email,
.custom-modal-form-password,
.custom-modal-form-confirmation,
.custom-modal-form-registration,
.custom-modal-form-registration-confirmation {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Form Field Styles */
.custom-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.custom-form-label {
  display: block;
  color: #cfcfcf;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.custom-form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(20, 255, 228, 0.35);
  border-radius: 10px;
  background: #0e0716 !important;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.custom-form-input:focus {
  outline: none;
  border-color: #14ffe4;
  box-shadow: 0 0 0 2px rgba(20,255,228,0.2);
  background: #0e0716 !important;
}

.custom-form-input::placeholder {
  color: #999;
}

/* Autocomplete styling - #0e0716 background with white text */
.custom-form-input:-webkit-autofill,
.custom-form-input:-webkit-autofill:hover,
.custom-form-input:-webkit-autofill:focus,
.custom-form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0e0716 inset !important;
  box-shadow: 0 0 0 30px #0e0716 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: #0e0716 !important;
  background: #0e0716 !important;
  background-image: none !important;
  border: 1px solid rgba(20, 255, 228, 0.35) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Override Chrome's internal autofill-selected with higher specificity */
input:-internal-autofill-selected,
input.custom-form-input:-internal-autofill-selected,
.custom-form-input:-internal-autofill-selected {
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0 0 1000px #0e0716 inset !important;
  box-shadow: 0 0 0 1000px #0e0716 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  background-color: #0e0716 !important;
  background: #0e0716 !important;
  background-image: none !important;
  border: 1px solid rgba(20, 255, 228, 0.35) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background-color 5000s ease-in-out 0s;
}

.custom-form-input:-webkit-autofill:focus {
  border-color: #14ffe4 !important;
  box-shadow: 0 0 0 2px rgba(20, 255, 228, 0.2) !important;
}

/* Autocomplete dropdown styling */
input.custom-form-input:-webkit-autofill::first-line {
  color: #fff !important;
  font-size: 1rem !important;
}

/* Style the browser autocomplete dropdown list */
input.custom-form-input::-webkit-contacts-auto-fill-button,
input.custom-form-input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}

/* Additional autocomplete overrides */
input.custom-form-input:-webkit-autofill,
input.custom-form-input:-webkit-autofill:hover,
input.custom-form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #0e0716 inset !important;
  box-shadow: 0 0 0 1000px #0e0716 inset !important;
  background-color: #0e0716 !important;
  background: #0e0716 !important;
  background-image: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  border: 1px solid rgba(20, 255, 228, 0.35) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Force override Chrome's internal autofill-selected - additional rule */
input:-internal-autofill-selected,
input.custom-form-input:-internal-autofill-selected {
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-box-shadow: 0 0 0 1000px #0e0716 inset !important;
  box-shadow: 0 0 0 1000px #0e0716 inset !important;
  background-color: #0e0716 !important;
  background: #0e0716 !important;
  background-image: none !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  border: 1px solid rgba(20, 255, 228, 0.35) !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .custom-form-input {
  padding-right: 45px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #14ffe4;
}

.password-requirement {
  color: #999;
  font-size: 0.8rem;
  margin-top: 5px;
  text-align: left;
}

.custom-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.custom-divider::before,
.custom-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #555;
}

.custom-divider-text {
  color: #cfcfcf;
  font-size: 0.95rem;
}

.custom-social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.custom-google-btn,
.custom-apple-btn,
.custom-discord-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  width: 100%;
}

.custom-google-btn {
  background: #666;
  border: 1px solid #999;
  color: white;
  grid-column: 1 / -1;
}

.custom-google-btn:hover {
  background: #999;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

.custom-apple-btn {
  background: #333;
  color: white;
  border: 1px solid #999;
}

.custom-apple-btn:hover {
  background: #555;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.custom-discord-btn {
  background: #5865f2;
  color: white;
}

.custom-discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.custom-login-link {
  color: #cfcfcf;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.custom-login-link a {
  color: #14ffe4;
  font-weight: 600;
  transition: color 0.3s ease;
}

.custom-login-link a:hover {
  color: #0ed6bf;
  text-decoration: underline;
}

.custom-terms {
  color: #cfcfcf;
  line-height: 1.4;
  font-size: 0.85rem;
}

.custom-terms a {
  color: #14ffe4;
  transition: color 0.3s ease;
}

.custom-terms a:hover {
  color: #0ed6bf;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0; 
    transform: scale(0.8) translateY(-50px); 
  }
  to { 
    opacity: 1; 
    transform: scale(1) translateY(0); 
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .custom-modal-container {
    width: 95%;
    max-height: 90vh;
    margin: 10px;
  }
  
  .custom-modal-content {
    flex-direction: column;
    min-height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .custom-modal-left {
    min-height: 200px;
    max-height: 35vh;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 15px 10px 0;
  }
  
  .custom-modal-right {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    flex: 1;
    min-height: auto;
  }
  
  .custom-modal-form {
    padding: 20px 15px;
    min-height: auto;
    justify-content: flex-start;
  }
  
  .custom-modal-title {
    font-size: 1.2rem;
    line-height: 1.1;
  }
  
  .custom-form-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }
  
  .custom-form-subtitle {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
  
  .custom-modal-overlay {
    padding: 15px 10px 10px;
  }
  
  .custom-email-btn {
    padding: 10px 15px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #000 !important;
  }
  
  .custom-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .custom-google-btn {
    grid-column: 1 / -1;
    padding: 8px 15px;
    font-size: 0.85rem;
  }
  
  .custom-apple-btn,
  .custom-discord-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .custom-login-link {
    font-size: 0.85rem;
    margin-bottom: 10px;
  }

  .custom-resend-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
  }
  
  .custom-terms {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  
  .custom-divider {
    margin: 15px 0;
    gap: 10px;
  }
  
  .custom-divider-text {
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 360px) {
  .custom-modal-container {
    width: 95%;
    max-height: 90vh;
    margin: 10px;
  }
  
  .custom-modal-content {
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .custom-modal-left {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    min-height: 160px;
    max-height: 28vh;
    padding: 10px 6px 6px;
  }
  
  .custom-modal-right {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  
  .custom-modal-form {
    padding: 15px 10px;
  }
  
  .custom-modal-title {
    font-size: 0.9rem;
  }
  
  .custom-form-title {
    font-size: 1.1rem;
  }
  
  .custom-form-subtitle {
    font-size: 0.8rem;
  }
  
  .custom-email-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  
  .custom-social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }
  
  .custom-google-btn {
    grid-column: 1 / -1;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  .custom-apple-btn,
  .custom-discord-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  
  .custom-login-link {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }
  
  .custom-terms {
    font-size: 0.65rem;
    line-height: 1.1;
  }
  
  .custom-divider {
    margin: 10px 0;
  }
  
  .custom-divider-text {
    font-size: 0.75rem;
  }

  .custom-resend-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* Login Link Styling */
.custom-login-nav {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.custom-login-nav:hover {
  color: #ccc;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .custom-modal-container {
    width: 90%;
    max-height: 85vh;
  }
  
  .custom-modal-content {
    min-height: 450px;
  }
  
  .custom-modal-left {
    min-height: 400px;
  }
  
  .custom-modal-form {
    padding: 30px 25px;
  }
  
  .custom-modal-title {
    font-size: 1.6rem;
  }
  
  .custom-form-title {
    font-size: 1.8rem;
  }
}

/* Email Form Demo Page Body Styles - Only for demo page */
.email-form-demo-page body {
  margin: 0;
  padding: 0;
  background: #000000;
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Email Form Demo Modal Specific Styles - 3 social buttons in one row */
#emailFormDemoModal .custom-modal-container {
  max-height: 50vh !important;
}

#emailFormDemoModal .custom-modal-content {
  min-height: 200px !important;
}

#emailFormDemoModal .custom-modal-form {
  padding: 5px 15px 20px 15px !important;
  justify-content: flex-start !important;
}

#emailFormDemoModal .custom-form-group {
  margin-bottom: 5px !important;
}

#emailFormDemoModal .custom-form-subtitle {
  margin-bottom: 0.1rem !important;
  margin-top: 0 !important;
  color: #14ffe4 !important;
}

#emailFormDemoModal .custom-email-btn {
  margin-bottom: 5px !important;
}

#emailFormDemoModal .custom-divider {
  margin: 4px 0 !important;
}

#emailFormDemoModal .custom-social-buttons {
  display: flex;
  grid-template-columns: none;
  gap: 6px;
  margin-bottom: 8px;
  justify-content: center;
}

#emailFormDemoModal .custom-google-btn {
  grid-column: unset;
  flex: 1;
}

#emailFormDemoModal .custom-apple-btn,
#emailFormDemoModal .custom-discord-btn {
  flex: 1;
}

#emailFormDemoModal .custom-modal-backdrop {
  background: rgba(0, 0, 0, 0.8) !important;
}

/* Mobile responsive for email form demo modal */
@media (max-width: 768px) {
  #emailFormDemoModal.custom-modal.show {
    align-items: flex-start !important;
    padding-top: 1vh !important;
  }
  
  #emailFormDemoModal .custom-modal-container {
    max-height: 45vh !important;
  }
  
  #emailFormDemoModal .custom-modal-content {
    min-height: 180px !important;
  }
  
  #emailFormDemoModal .custom-modal-form {
    padding: 8px 12px 15px 12px !important;
    justify-content: flex-start;
  }
  
  #emailFormDemoModal .custom-form-group {
    margin-bottom: 4px !important;
  }
  
  #emailFormDemoModal .custom-email-btn {
    margin-bottom: 4px !important;
  }
  
  #emailFormDemoModal .custom-divider {
    margin: 3px 0 !important;
  }
  
  #emailFormDemoModal .custom-social-buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    justify-content: center;
  }
  
  #emailFormDemoModal .custom-modal-left {
    display: none !important;
  }
  
  #emailFormDemoModal .custom-modal-right {
    flex: 1 !important;
  }
  
  #emailFormDemoModal .custom-google-btn {
    flex: 1;
    padding: 8px 15px;
    font-size: 0.85rem;
  }
  
  #emailFormDemoModal .custom-apple-btn,
  #emailFormDemoModal .custom-discord-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  #emailFormDemoModal .custom-modal-left {
    display: none !important;
  }
  
  #emailFormDemoModal .custom-modal-right {
    flex: 1 !important;
  }
  
  #emailFormDemoModal .custom-social-buttons {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
  }
  
  #emailFormDemoModal .custom-google-btn {
    flex: 1;
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  
  #emailFormDemoModal .custom-apple-btn,
  #emailFormDemoModal .custom-discord-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 0.75rem;
  }
}

/* Forgot Password Link - Override Bootstrap */
#loginModal .forgot-pw,
#signupModal .forgot-pw {
  margin-top: 1rem !important;
  margin-bottom: 0.5rem !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

#loginModal .forgot-pw a,
#signupModal .forgot-pw a {
  --bs-link-color-rgb: 20, 255, 228 !important;
  --bs-link-opacity: 1 !important;
  color: #14ffe4 !important;
  -webkit-text-fill-color: #14ffe4 !important;
  text-decoration: underline !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

#loginModal .forgot-pw a:hover,
#signupModal .forgot-pw a:hover {
  --bs-link-color-rgb: 14, 214, 191 !important;
  color: #0ed6bf !important;
  -webkit-text-fill-color: #0ed6bf !important;
}
