/* ========================================
   Orderli Login Page Styles
   ======================================== */

/* Animated Background */
.animated-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background: #FAFBFC;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  will-change: transform;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -200px;
  right: -100px;
  animation: float1 20s ease-in-out infinite;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, #5837D9 0%, #650ba4 100%);
  bottom: -150px;
  left: -100px;
  animation: float2 25s ease-in-out infinite;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.25;
  animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, 40px) scale(1.05);
  }
  66% {
    transform: translate(-20px, -30px) scale(0.95);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, -30px) scale(1.08);
  }
  66% {
    transform: translate(30px, 20px) scale(0.92);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* Login Container */
.login-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

/* Glassmorphism Card */
.login-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 
    0 8px 32px rgba(88, 55, 217, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  max-width: 420px;
  width: 100%;
}

.login-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Logo */
.logo-container {
  margin-bottom: 20px;
}

.logo-image {
  width: 140px;
  height: 140px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo-image:hover {
  transform: scale(1.05);
}

/* Wordmark */
.wordmark {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

/* Slogan */
.slogan {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #6b7280;
  margin: 0 0 48px 0;
  letter-spacing: 0.08em;
}

/* SSO Buttons Container */
.signin-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

/* SSO Button - Glassmorphism Style */
.signin-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  padding: 16px 28px;
  
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  
  /* Text styling */
  color: #1a1a1a;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  
  /* Transitions */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  
  /* Subtle glow */
  box-shadow: 
    0 4px 16px rgba(88, 55, 217, 0.08),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.signin-button:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(88, 55, 217, 0.4);
  box-shadow: 
    0 8px 32px rgba(88, 55, 217, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

.signin-button:active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 4px 16px rgba(88, 55, 217, 0.12),
    0 1px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.signin-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.signin-text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 480px) {
  .login-container {
    padding: 16px;
  }

  .login-card {
    padding: 36px 24px;
    border-radius: 24px;
  }

  .logo-image {
    width: 110px;
    height: 110px;
  }

  .wordmark {
    font-size: 36px;
  }

  .slogan {
    font-size: 15px;
    margin-bottom: 36px;
  }

  .signin-button {
    padding: 14px 20px;
    font-size: 14px;
    border-radius: 14px;
  }

  .blob-1 {
    width: 400px;
    height: 400px;
  }

  .blob-2 {
    width: 300px;
    height: 300px;
  }

  .blob-3 {
    width: 250px;
    height: 250px;
  }
}

/* Handle very small heights */
@media (max-height: 600px) {
  .login-card {
    padding: 32px 28px;
  }

  .logo-image {
    width: 90px;
    height: 90px;
  }

  .wordmark {
    font-size: 32px;
  }

  .slogan {
    margin-bottom: 28px;
  }
}

/* iOS height fix */
@supports (-webkit-touch-callout: none) {
  .login-container {
    min-height: -webkit-fill-available;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .blob {
    animation: none;
  }
  
  .signin-button {
    transition: none;
  }
  
  .logo-image {
    transition: none;
  }
}

/* ========================================
   Legacy Styles (kept for compatibility)
   ======================================== */

/* Welcome Page Styles */
.onboarding-welcome {
  min-height: 100vh;
  background: #F9F1FF;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.welcome-text {
  color: #ffffff;
  text-align: center;
  margin-bottom: 16px;
}

.description-text {
  color: #ffffff;
  text-align: center;
  margin-bottom: 24px;
  max-width: 342px;
}

.practice-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 16px;
  gap: 16px;
  width: 342px;
  height: 104px;
  background: linear-gradient(0deg, #ffffff 0%, #fafafa 100%);
  border-width: 1px;
  border-style: solid;
  border-color: rgba(67, 7, 110, 0.5);
  border-radius: 8px;
  margin: 0 auto;
}

.splash-screen {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
}

.onboarding-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

.logo-name-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  flex: 0 0 auto;
  transform: translateY(-7vh);
}

.signin-buttons-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
  margin-top: auto;
  padding-top: 24px;
}

.google-button-container {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.google-signin-button {
  display: flex;
  width: 80%;
  height: 50px;
  padding: 8px;
  justify-content: center;
  align-items: center;
  gap: 18px;
  border-radius: 24px;
  cursor: pointer;
  text-decoration: none;
  border-radius: 16px;
  background: var(--surface-surface-action-2, #FFF);
  box-shadow: 0px 4px 8px -4px rgba(16, 24, 40, 0.05);
  margin: 0 auto;
}

.google-signin-button img {
  width: 24px;
  height: 24px;
}

.google-signin-button span {
  color: #111827;
}

.onboarding-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  display: flex;
  justify-content: center;
}
