/* ================================================================================
   ASTRODEVO WELCOME - OPTIMIZED FOR CLARITY
   Clean, readable, conversion-focused design
   ================================================================================ */

/* === CSS VARIABLES === */
:root {
  /* Brand Colors */
  --astro-primary: #6B46C1;
  --astro-primary-light: #9F7AEA;
  --astro-primary-dark: #553C9A;
  --astro-secondary: #ED8936;
  --astro-accent: #F687B3;
  
  /* Gradients */
  --astro-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --astro-gradient-warm: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  
  /* Typography */
  --astro-font-display: 'Georgia', 'Palatino', serif;
  --astro-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Oxygen', 'Ubuntu', sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-bs-theme="dark"] {
  --astro-primary: #9F7AEA;
  --astro-primary-light: #B794F4;
  --astro-primary-dark: #805AD5;
}

/* === BASE === */
.astro_welcome_container {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: var(--astro-font-body);
  background: linear-gradient(180deg, #F7FAFC 0%, #EDF2F7 100%);
}

[data-bs-theme="dark"] .astro_welcome_container {
  background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
}

.astro_bg_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(107, 70, 193, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(246, 135, 179, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.astro_content_wrapper {
  position: relative;
  z-index: 1;
  padding: var(--space-lg) 0;
}

/* ================================
   DHARMA SUBTITLE – SACRED EFFECT
   ================================ */

.dharma-subtitle-wrapper {
	position: relative;
	padding-bottom: 16px;
	overflow: hidden;
}

.dharma-subtitle-animate {
	opacity: 0;
	transform: translateY(10px);
	animation: dharmaFadeIn 1.8s ease-out forwards;
	animation-delay: 0.4s;

	/* Sacred visual tone */
	color: #e8d8b0; /* sandalwood gold */
	text-shadow:
		0 0 6px rgba(255, 220, 160, 0.25),
		0 0 14px rgba(255, 200, 120, 0.18);

	font-weight: 500;
	letter-spacing: 0.2px;
}

/* Flowing sacred thread underline */
.dharma-subtitle-wrapper::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;

	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 200, 120, 0.65),
		transparent
	);

	animation: dharmaFlow 4s ease-in-out infinite;
}

/* Fade-in animation */
@keyframes dharmaFadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Gentle flowing underline */
@keyframes dharmaFlow {
	0% { opacity: 0.25; }
	50% { opacity: 0.75; }
	100% { opacity: 0.25; }
}

/* Mobile optimization */
@media (max-width: 768px) {
	.dharma-subtitle-animate {
		font-size: 0.95rem;
		text-align: center;
	}
}


/* === TRUST BAR === */
.astro_trust_bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-lg);
  animation: fade-in-down 0.6s ease-out;
}

[data-bs-theme="dark"] .astro_trust_bar {
  background: rgba(26, 26, 46, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.astro_trust_item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--astro-primary);
}

[data-bs-theme="dark"] .astro_trust_item {
  color: var(--astro-primary-light);
}

.astro_trust_icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}

/* === MAIN ROW === */
.astro_main_row {
  min-height: 75vh;
}

/* === AUTH CARD - PRIMARY FOCUS === */
.astro_auth_card {
  height: 100%;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  animation: fade-in-up 0.8s ease-out;
}

[data-bs-theme="dark"] .astro_auth_card {
  background: rgba(26, 26, 46, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
}

.astro_auth_content {
  padding: var(--space-xl);
}

/* === LOGO === */
.astro_logo_link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--space-lg);
  transition: transform var(--transition);
}

.astro_logo_link:hover {
  transform: scale(1.03);
}

.astro_logo {
  height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.astro_logo_text {
  font-family: var(--astro-font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--astro-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-bs-theme="light"] .astro_logo_dark {
  display: none;
}

[data-bs-theme="dark"] .astro_logo_light {
  display: none;
}

/* === AUTH HEADER === */
.astro_auth_header {
  margin-bottom: var(--space-lg);
}

.astro_auth_title {
  font-family: var(--astro-font-display);
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: #1a1a2e;
  letter-spacing: -0.02em;
}

[data-bs-theme="dark"] .astro_auth_title {
  color: #ffffff;
}

.astro_title_sparkle {
  display: inline-block;
  animation: sparkle 2s ease-in-out infinite;
}

.astro_auth_subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: #4A5568;
  margin: 0;
}

[data-bs-theme="dark"] .astro_auth_subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* === TRUST PILLS === */
.astro_trust_pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.astro_trust_pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.08) 0%, rgba(246, 135, 179, 0.08) 100%);
  border: 1.5px solid rgba(107, 70, 193, 0.2);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--astro-primary);
  transition: all var(--transition);
}

[data-bs-theme="dark"] .astro_trust_pill {
  background: linear-gradient(135deg, rgba(159, 122, 234, 0.12) 0%, rgba(246, 135, 179, 0.1) 100%);
  border-color: rgba(159, 122, 234, 0.3);
  color: var(--astro-primary-light);
}

.astro_trust_pill:hover {
  background: var(--astro-gradient-primary);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.astro_trust_pill svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

/* === FORM STYLING === */
.astro_form_container {
  margin-bottom: var(--space-lg);
}

/* Input Fields */
.astro_form_container .form-control,
.astro_form_container .form-select,
.astro_form_container input[type="text"],
.astro_form_container input[type="email"],
.astro_form_container input[type="password"],
.astro_form_container select {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-md);
  background: #F7FAFC;
  color: #1a1a2e;
  transition: all var(--transition);
  font-family: var(--astro-font-body);
  width: 100%;
}

[data-bs-theme="dark"] .astro_form_container .form-control,
[data-bs-theme="dark"] .astro_form_container .form-select,
[data-bs-theme="dark"] .astro_form_container input,
[data-bs-theme="dark"] .astro_form_container select {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.astro_form_container .form-control:focus,
.astro_form_container .form-select:focus,
.astro_form_container input:focus,
.astro_form_container select:focus {
  border-color: var(--astro-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(107, 70, 193, 0.1);
  outline: none;
}

[data-bs-theme="dark"] .astro_form_container .form-control:focus,
[data-bs-theme="dark"] .astro_form_container input:focus,
[data-bs-theme="dark"] .astro_form_container select:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--astro-primary-light);
}

/* Labels */
.astro_form_container label {
  font-weight: 600;
  color: #2D3748;
  margin-bottom: 0.5rem;
  font-size: 0.938rem;
}

[data-bs-theme="dark"] .astro_form_container label {
  color: rgba(255, 255, 255, 0.9);
}

/* Buttons */
.astro_form_container .btn,
.astro_form_container button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  width: 100%;
  cursor: pointer;
}

.astro_form_container .btn-primary,
.astro_form_container button[type="submit"],
.astro_form_container .btn-primary {
  background: var(--astro-gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(107, 70, 193, 0.3);
}

.astro_form_container .btn-primary:hover,
.astro_form_container button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 70, 193, 0.4);
}

.astro_form_container .btn-primary:active,
.astro_form_container button[type="submit"]:active {
  transform: translateY(0);
}

/* Secondary Buttons */
.astro_form_container .btn-secondary,
.astro_form_container .btn-outline-primary {
  background: transparent;
  color: var(--astro-primary);
  border: 2px solid var(--astro-primary);
}

[data-bs-theme="dark"] .astro_form_container .btn-secondary {
  color: var(--astro-primary-light);
  border-color: var(--astro-primary-light);
}

.astro_form_container .btn-secondary:hover {
  background: var(--astro-gradient-primary);
  color: #ffffff;
  border-color: transparent;
}

/* Links */
.astro_form_container a:not(.btn) {
  color: var(--astro-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}

[data-bs-theme="dark"] .astro_form_container a:not(.btn) {
  color: var(--astro-primary-light);
}

.astro_form_container a:not(.btn):hover {
  color: var(--astro-primary-dark);
  text-decoration: underline;
}

/* Checkbox */
.astro_form_container input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  cursor: pointer;
}

/* === AUTH FOOTER === */
.astro_auth_footer {
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.06) 0%, rgba(246, 135, 179, 0.06) 100%);
  border: 1px solid rgba(107, 70, 193, 0.15);
  border-radius: var(--radius-md);
  text-align: center;
}

[data-bs-theme="dark"] .astro_auth_footer {
  background: linear-gradient(135deg, rgba(159, 122, 234, 0.1) 0%, rgba(246, 135, 179, 0.08) 100%);
  border-color: rgba(159, 122, 234, 0.2);
}

.astro_cta_text {
  margin: 0;
  font-size: 0.938rem;
  line-height: 1.6;
  color: #2D3748;
  font-weight: 500;
}

[data-bs-theme="dark"] .astro_cta_text {
  color: rgba(255, 255, 255, 0.9);
}

/* === HERO SECTION === */
.astro_hero_section {
  position: relative;
  height: 100%;
  min-height: 600px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.astro_hero_bg_container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.astro_hero_bg_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: blur(3px);
}

[data-bs-theme="dark"] .astro_hero_bg_image {
  opacity: 0.08;
}

.astro_hero_gradient_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(107, 70, 193, 0.95) 0%, 
    rgba(118, 75, 162, 0.92) 50%,
    rgba(159, 122, 234, 0.90) 100%);
}

[data-bs-theme="dark"] .astro_hero_gradient_overlay {
  background: linear-gradient(135deg, 
    rgba(15, 15, 35, 0.98) 0%, 
    rgba(26, 26, 46, 0.96) 50%,
    rgba(107, 70, 193, 0.85) 100%);
}

.astro_hero_content_box {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

/* === HERO HEADLINE === */
.astro_hero_headline_section {
  margin-bottom: var(--space-xl);
  text-align: center;
}

.astro_hero_headline {
  font-family: var(--astro-font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.astro_hero_tagline {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
}

/* === FEATURES SHOWCASE === */
.astro_features_showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.astro_feature_box {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.astro_feature_box:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.astro_feature_icon_wrapper {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.astro_feature_emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.astro_feature_text {
  flex: 1;
}

.astro_feature_heading {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: #ffffff;
}

.astro_feature_description {
  font-size: 0.938rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* === APP SECTION === */
.astro_app_section {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  text-align: center;
  margin-bottom: var(--space-md);
}

.astro_app_label {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-md);
}

.astro_app_badges_row {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.astro_store_badge {
  display: inline-block;
  transition: transform var(--transition);
  filter: brightness(1.1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.astro_store_badge:hover {
  transform: translateY(-4px) scale(1.02);
}

.astro_system_description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: var(--space-md) 0 0;
}

/* === FOOTER === */
.astro_footer_section {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] .astro_footer_section {
  border-color: rgba(255, 255, 255, 0.1);
}

.astro_footer_section a {
  color: #718096;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}

[data-bs-theme="dark"] .astro_footer_section a {
  color: rgba(255, 255, 255, 0.6);
}

.astro_footer_section a:hover {
  color: var(--astro-primary);
}

/* === RESPONSIVE === */
@media (max-width: 767.98px) {
  .astro_content_wrapper {
    padding: var(--space-md) 0;
  }

  .astro_trust_bar {
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .astro_trust_item {
    font-size: 0.75rem;
  }

  .astro_auth_content {
    padding: var(--space-lg);
  }

  .astro_auth_title {
    font-size: 1.75rem;
  }

  .astro_trust_pills {
    gap: 0.5rem;
  }

  .astro_trust_pill {
    padding: 0.5rem 1rem;
    font-size: 0.813rem;
  }

  .astro_form_container .form-control,
  .astro_form_container input,
  .astro_form_container .btn {
    padding: 0.875rem 1rem;
    font-size: 0.938rem;
  }

  .astro_hero_content_box {
    padding: var(--space-lg);
  }

  .astro_features_showcase {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .astro_auth_content {
    padding: var(--space-lg);
  }

  .astro_features_showcase {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .astro_main_row {
    min-height: 80vh;
  }
}

/* === ANIMATIONS === */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sparkle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-10deg) scale(1.1);
  }
  75% {
    transform: rotate(10deg) scale(1.1);
  }
}

/* === ACCESSIBILITY === */
.astro_welcome_container *:focus-visible {
  outline: 3px solid var(--astro-primary);
  outline-offset: 2px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === HIGH CONTRAST === */
@media (prefers-contrast: high) {
  .astro_trust_pill,
  .astro_feature_box,
  .astro_form_container input,
  .astro_form_container select {
    border-width: 2px;
  }
}
