/* ==============================
   Modern Authentication UI Styles
   ============================== */

* {
  box-sizing: border-box;
}


/* Body and main container - DARK TECH THEME */
.auth-container { 
  font-family: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  overflow: hidden;
  background: #111827; /* Dark gray-900 */
  color: white;
  margin: 0 !important;
  padding: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
}

/* Optional: Add subtle tech pattern overlay */
.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Landing page layout - full screen */
.landing-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 1;
  justify-content: center;
  align-items: center;
}

/* Brand content - centered on landing page */
.brand-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
  max-width: 800px;
  padding: 40px;
  z-index: 2;
}

.brand-logo {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.brand-tagline {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: #d1d5db; /* gray-300 */
  line-height: 1.5;
}

/* Try Datably button - TECH THEME */
.try-datably-container {
  margin-top: 2rem;
}

.try-datably-btn {
  background: #7c3aed; /* purple-600 */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.try-datably-btn:hover {
  background: #6d28d9; /* purple-700 */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.try-datably-btn:active {
  transform: translateY(0);
}

/* Popup overlay styles - DARK TECH THEME */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.popup-container {
  position: relative;
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  background: #1f2937; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease;
}

.popup-content {
  position: relative;
  padding: 0;
}

.popup-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af; /* gray-400 */
  cursor: pointer;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: #374151; /* gray-700 */
  color: white;
  transform: scale(1.1);
}

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

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

/* Verification pages layout - DARK THEME */
.verification-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 1;
  justify-content: center;
  align-items: center;
}

.verification-content {
  background: #1f2937; /* gray-800 */
  border: 1px solid #374151; /* gray-700 */
  padding: 60px;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 500px;
  width: 90%;
  color: white;
}

.verification-content h2 {
  color: white;
}

.verification-content p {
  color: #d1d5db; /* gray-300 */
}

.verification-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* Auth card styling - DARK TECH THEME */
.auth-card {
  background: #1f2937; /* gray-800 */
  border-radius: 20px;
  box-shadow: none;
  width: 100%;
  position: relative;
  z-index: 2;
  border: none;
  overflow: visible;
  max-height: none;
}

.auth-card-body {
  padding: 30px;
  background-color: #1f2937; /* gray-800 */
  border-radius: 20px;
  width: 100%;
}

/* Form header */
.form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.form-subtitle {
  color: #d1d5db; /* gray-300 */
  font-size: 0.9rem;
}

/* Input styling - DARK TECH THEME */
.auth-input-group {
  margin-bottom: 1rem;
  position: relative;
}

.auth-input-group .form-label {
  display: block;
  font-weight: 500;
  color: #d1d5db; /* gray-300 */
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #4b5563; /* gray-600 */
  border-radius: 10px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  background: #374151; /* gray-700 */
  color: white;
}

.input-with-icon input::placeholder {
  color: #9ca3af; /* gray-400 */
}

.input-with-icon input:focus {
  outline: none;
  border-color: #7c3aed; /* purple-600 */
  background: #374151; /* gray-700 */
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
  transform: translateY(-1px);
}

.input-with-icon .input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af; /* gray-400 */
  font-size: 1rem;
  z-index: 1;
}

/* Remember me section - DARK THEME */
.auth-remember-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1rem 0 1.5rem 0;
}

.form-check.custom-checkbox {
  display: flex;
  align-items: center;
}

.form-check-input {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  accent-color: #7c3aed; /* purple-600 */
  cursor: pointer;
}

.form-check-label {
  color: #d1d5db; /* gray-300 */
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* Buttons - DARK TECH THEME */
.auth-submit-btn {
  width: 100%;
  padding: 12px;
  background: #7c3aed; /* purple-600 */
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.auth-submit-btn:hover {
  background: #6d28d9; /* purple-700 */
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-google-btn {
  width: 100%;
  padding: 12px;
  background: white;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #374151; /* gray-700 */
}

.auth-google-btn:hover {
  background: #f9fafb; /* gray-50 */
  border-color: #9ca3af; /* gray-400 */
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-google-btn .fa-google {
  margin-right: 8px;
  font-size: 1rem;
  color: #ea4335; /* Google red */
}

/* Divider - DARK THEME */
.d-flex.align-items-center.my-4 {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  font-size: 0.8rem;
}

.d-flex.align-items-center.my-4 .flex-grow-1 {
  flex: 1;
  height: 1px;
  background: #d1d5db; /* gray-300 - almost white */
}

.d-flex.align-items-center.my-4 .mx-3 {
  padding: 0 0.75rem;
  color: #d1d5db; /* gray-300 - almost white */
}

.d-flex.align-items-center.my-4 .text-muted {
  color: #d1d5db !important; /* gray-300 - almost white, force override */
}

/* Auth links - DARK THEME */
.auth-links {
  text-align: center;
}

.auth-links a {
  color: #a78bfa; /* purple-400 */
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-block;
  margin: 0.1rem 0;
}

.auth-links a:hover {
  text-decoration: underline;
  color: #c4b5fd; /* purple-300 */
}

.forgot-link {
  color: #a78bfa; /* purple-400 */
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #c4b5fd; /* purple-300 */
}

/* Password reset form */
#reset_password_form {
  padding: 0;
}

#reset_password_form h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
  text-align: center;
}

/* Footer */
.auth-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.auth-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.auth-footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Alerts */
.auth-alert {
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-color: #c3e6cb;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-color: #f5c6cb;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  color: #856404;
  border-color: #ffeeba;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-color: #bee5eb;
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .brand-content {
    padding: 20px;
  }

  .brand-logo {
    font-size: 2.5rem;
  }

  .brand-tagline {
    font-size: 1.2rem;
  }

  .try-datably-btn {
    font-size: 0.9rem;
    padding: 10px 24px;
  }

  .popup-container {
    width: 95%;
    margin: 20px;
  }

  .auth-card-body {
    padding: 30px;
  }

  .form-title {
    font-size: 1.5rem;
  }

  .verification-content {
    padding: 40px 30px;
  }
}

@media (max-height: 600px) {
  .auth-card-body {
    padding: 20px;
  }
  
  .auth-input-group {
    margin-bottom: 1rem;
  }
  
  .auth-submit-btn, .auth-google-btn {
    padding: 12px;
  }

  .popup-container {
    max-height: 95vh;
  }
}

/* Navbar compatibility */
.navbar.navbar-dark {
  background-color: #303030;
  padding: 0.3rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030;
  height: 48px;
}

#sidebar-toggle .btn-link, #gear-toggle .btn-link { 
  color: white; 
  padding: 0;
}

#sidebar-toggle .bi, #gear-toggle .bi {
  font-size: 1.2rem;
}

#sidebar-toggle {
  position: absolute;
  left: 20px;
}

#gear-toggle {
  position: absolute;
  right: 20px;
}

body { 
  padding-top: 48px; 
}



/* Enhanced Landing Page with Scrollable Sections */

/* Update the main landing container to allow scrolling */
.landing-container {
  display: block; /* Changed from flex to allow normal document flow */
  width: 100%;
  min-height: 100vh; /* Changed from height to min-height */
  position: relative;
  z-index: 1;
  overflow-y: auto; /* Allow vertical scrolling */
}

/* Hero section - your existing content */
.hero-section {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 1;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

/* Responsive design */
@media (max-width: 768px) {
}


/* Login button styling */
.hero-login-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.login-button {
  background: #7c3aed; /* purple-600 */
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.login-button:hover {
  background: #6d28d9; /* purple-700 */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.login-button:active {
  transform: translateY(0);
}