/**
 * Signup Page Christmas Showcase Theme
 * Matches the landing page nighttime Christmas theme
 */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0a1128 0%, #1a2456 50%, #2d3e6f 100%);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow-x: hidden;
}

/* Stars Background */
.stars-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.star {
  position: absolute;
  opacity: 0.8;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Santa's Sleigh */
.santa-sleigh {
  position: fixed;
  top: 8%;
  left: -200px;
  z-index: 1;
  animation: flySleigh 25s linear infinite;
  pointer-events: none;
}

.santa-image {
  height: 100px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

@keyframes flySleigh {
  0% {
    left: -200px;
    top: 8%;
  }
  25% {
    top: 6%;
  }
  50% {
    top: 10%;
  }
  75% {
    top: 7%;
  }
  100% {
    left: calc(100% + 200px);
    top: 8%;
  }
}

/* Main Container */
.signup-showcase-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section - Split Layout */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 80px;
  align-items: stretch;
  width: 100%;
}

/* Mobile: Form first, then content */
.hero-section .auth-form-wrapper {
  order: 1;
  width: 100%;
}

.hero-section .hero-content {
  order: 2;
  width: 100%;
}

@media (min-width: 968px) {
  .hero-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
  }
  
  /* Desktop: Content on left, form on right - both start at same level */
  .hero-section .hero-content {
    grid-column: 1;
    width: auto;
    align-self: start;
    order: unset;
  }
  
  .hero-section .auth-form-wrapper {
    grid-column: 2;
    width: auto;
    align-self: start;
    order: unset;
  }
}

/* Hero Content */
.hero-content {
  color: white;
  padding: 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px 0;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 968px) {
  .hero-content {
    padding-top: 60px;
  }
  
  .hero-title {
    margin-top: 0;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 40px 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
}

/* Auth Form - Sticky Card */
.auth-form-wrapper {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 40px;
  position: relative;
  z-index: 10;
  margin-top: 0;
}

@media (min-width: 968px) {
  .auth-form-wrapper {
    position: sticky;
    top: 20px;
    margin-top: 0;
    padding: 45px 40px 40px 40px;
  }
}

.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 8px 0;
  text-align: center;
}

.form-subtitle {
  font-size: 0.95rem;
  color: #718096;
  margin: 0 0 30px 0;
  text-align: center;
}

.security-note {
  text-align: center;
  font-size: 0.85rem;
  color: #718096;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* Showcase content wrapper - single column stacked */
.showcase-content-wrapper {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}

/* Showcase Sections */
.showcase-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.showcase-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: #2d3748;
  margin-bottom: 16px;
}

.showcase-section p {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.feature-card-content {
  padding: 20px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 10px 0;
}

.feature-card p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Story Cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.story-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.story-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 12px 0;
}

.story-card .story-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 12px;
}

.story-card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.story-card a {
  display: inline-block;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.story-card a:hover {
  color: #5568d3;
  text-decoration: underline;
}

/* Character Carousel */
.character-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.character-carousel::-webkit-scrollbar {
  height: 8px;
}

.character-carousel::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.character-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.character-carousel::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.character-item {
  flex: 0 0 auto;
  width: 200px;
}

.character-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.character-item p {
  text-align: center;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}

.character-download-note {
  margin-top: 20px;
  font-weight: 600;
  color: #667eea;
  text-align: center;
}

/* How It Works Section */
.how-it-works-section {
  margin: 80px 0;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 60px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 30px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.step-icon {
  font-size: 3rem;
  margin: 20px 0;
}

.step-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 15px 0;
}

.step-card p {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
  margin: 0;
}

/* Book Order Section */
.book-order-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px;
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
}

.book-order-content {
  padding: 50px 40px;
  text-align: center;
}

.book-order-section h2 {
  color: white;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 30px 0;
}

.book-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.book-features li {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 12px;
  padding-left: 0;
}

.book-order-section .highlight {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffd700;
  margin: 30px 0 20px 0;
  display: block;
}

.book-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

@media (min-width: 600px) {
  .book-cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }
}

.cta-button {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.cta-button.cta-primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #5568d3;
}

.cta-button.cta-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
  box-shadow: none;
}

.cta-button.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

/* Pricing CTA Section */
.pricing-cta-section {
  background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  margin: 80px 0;
  box-shadow: 0 10px 40px rgba(255, 170, 0, 0.3);
}

.pricing-cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2d3748;
  margin: 0 0 20px 0;
}

.pricing-cta-content p {
  font-size: 1.2rem;
  color: #2d3748;
  margin: 0 0 30px 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-cta-button {
  display: inline-block;
  background: #2d3748;
  color: white;
  padding: 18px 48px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pricing-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: white;
}

/* Footer */
.signup-footer {
  margin-top: 80px;
  padding: 40px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  margin: 0;
}

/* Primary CTA Button Styling */
.primary-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
  transition: all 0.3s ease !important;
}

.primary-cta:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5) !important;
}

/* Code Step Styling */
.code-instruction {
  text-align: center;
  color: #2d3748;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.code-hint {
  text-align: center;
  color: #718096;
  font-size: 0.85rem;
  margin-top: 8px;
  margin-bottom: 20px;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .signup-showcase-container {
    padding: 20px 15px;
  }

  .hero-section {
    margin-bottom: 50px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .trust-badges {
    gap: 12px;
  }

  .trust-badge {
    padding: 10px 16px;
  }

  .badge-text {
    font-size: 0.85rem;
  }

  .auth-form-wrapper {
    padding: 30px 20px;
  }

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

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .how-it-works-section {
    margin: 50px 0;
  }

  .step-card {
    padding: 35px 25px;
  }

  .step-card h3 {
    font-size: 1.3rem;
  }

  .showcase-section {
    padding: 30px 20px;
    margin-bottom: 30px;
  }

  .showcase-section h2 {
    font-size: 1.6rem;
  }

  .showcase-section p {
    font-size: 1rem;
  }

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

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

  .santa-image {
    height: 70px;
  }

  .book-order-content {
    padding: 40px 25px;
  }

  .book-order-section h2 {
    font-size: 1.6rem;
  }

  .book-features li {
    font-size: 1rem;
  }

  .pricing-cta-section {
    padding: 40px 25px;
    margin: 50px 0;
  }

  .pricing-cta-content h2 {
    font-size: 1.8rem;
  }

  .pricing-cta-content p {
    font-size: 1rem;
  }

  .footer-links {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-form-wrapper {
    padding: 25px 15px;
  }

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

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

  .step-icon {
    font-size: 2.5rem;
  }

  .showcase-section h2 {
    font-size: 1.4rem;
  }

  .character-item {
    width: 150px;
  }

  .character-item img {
    height: 150px;
  }

  .pricing-cta-content h2 {
    font-size: 1.5rem;
  }

  .pricing-cta-button,
  .cta-button {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .santa-image {
    height: 60px;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}
