
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  html, body {
    margin: 0;
    padding: 0;
  }

  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 3.9%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 3.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 3.9%;
    
    /* Trios Photo Booth Brand Colors */
    --primary: 330 81% 60%; /* #EC4899 Pink */
    --primary-foreground: 0 0% 98%;
    --secondary: 217 91% 60%; /* #3B82F6 Blue */
    --secondary-foreground: 0 0% 98%;
    --accent: 45 93% 47%; /* Yellow */
    --accent-foreground: 0 0% 9%;
    
    --muted: 0 0% 96.1%;
    --muted-foreground: 0 0% 45.1%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 89.8%;
    --input: 0 0% 89.8%;
    --ring: 330 81% 60%;
    --radius: 1rem; /* 16px */
    
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    
    --parallax-opacity: 0.8;
    --parallax-overlay: 255, 255, 255;
    --parallax-blur: 0px;
  }
 
  .dark {
    --background: 0 0% 3.9%;
    --foreground: 0 0% 98%;
    --card: 0 0% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 3.9%;
    --popover-foreground: 0 0% 98%;
    
    --primary: 330 81% 60%;
    --primary-foreground: 0 0% 98%;
    --secondary: 217 91% 60%;
    --secondary-foreground: 0 0% 98%;
    --accent: 45 93% 47%;
    --accent-foreground: 0 0% 9%;
    
    --muted: 0 0% 14.9%;
    --muted-foreground: 0 0% 63.9%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 0 0% 14.9%;
    --input: 0 0% 14.9%;
    --ring: 330 81% 60%;
  }

  @font-face {
    font-family: 'Montserrat';
    font-display: swap;
    src: local('Montserrat');
  }

  .parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
  }

  .parallax-image-wrapper {
    position: absolute;
    top: -10%;
    left: 0;
    width: 100%;
    height: 120vh;
    will-change: transform;
  }

  .parallax-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.1s ease-out;
  }

  .parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  @media (max-width: 768px) {
    .parallax-image-wrapper {
      position: fixed;
      top: 0;
      height: 100vh;
    }
  }
}
 
@layer base {
  * {
    border-color: hsl(var(--border));
  }
  html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    overflow-x: hidden;
  }
  h1, h2, h3, h4, h5, h6, .text-title {
    font-family: 'Montserrat', sans-serif;
  }
  button, a {
    transition: all 0.2s ease-in-out;
  }
  button:active, a:active {
    transform: scale(0.98);
  }
}

@layer components {
  .trios-gradient-bg {
    @apply bg-gradient-to-br from-[#EC4899] via-purple-500 to-[#3B82F6];
  }
  .gradient-text {
    @apply bg-gradient-to-r from-[#EC4899] via-purple-500 to-[#3B82F6] text-transparent bg-clip-text;
  }
  
  /* Mobile Device Verification UI Classes */
  .gradient-pink-blue {
    @apply bg-gradient-to-r from-[#EC4899] to-[#3B82F6];
  }
  .button-large {
    @apply w-full h-[120px] text-[48px] font-bold text-white rounded-[16px] shadow-md hover:shadow-lg hover:scale-[1.02] active:scale-95 active:opacity-90 flex items-center justify-center;
  }
  .text-title {
    @apply text-[32px] font-bold text-gray-900 leading-tight;
  }
  .text-subtitle {
    @apply text-[18px] text-gray-600 font-medium;
  }
  
  /* Auth Flow & Device Challenge Styles */
  .device-challenge-box {
    @apply bg-gray-100 rounded-[16px] px-12 py-10 flex items-center justify-center shadow-inner mx-auto transition-all duration-300;
    max-width: 200px;
  }
  .device-challenge-number {
    @apply text-[72px] font-black text-gray-900 leading-none tracking-tight select-none;
  }
  .auth-form-input {
    @apply bg-white border-gray-300 text-gray-900 focus:ring-pink-500 transition-all duration-200 min-h-[44px];
  }
  .auth-form-input.error {
    @apply border-red-500 focus:ring-red-500;
  }
}
