/* ==============================================
 * Welcome / Landing Page Styles
 * Extracted from index.html inline <style>
 * ============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: linear-gradient(135deg, #e9394f, #ff3333);
}

body.welcome-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, #e9394f, #ff3333);
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  position: relative;
  padding-top: env(safe-area-inset-top);
}

/* Animated background shapes */
body.welcome-page::before,
body.welcome-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: float 8s ease-in-out infinite;
}

body.welcome-page::before {
  width: 450px;
  height: 450px;
  top: -120px;
  right: -100px;
  animation-delay: 0s;
}

body.welcome-page::after {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -80px;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.welcome-container {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 52px 44px 44px;
  border-radius: 24px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.08);
  max-width: 92%;
  width: 480px;
  position: relative;
  z-index: 1;
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(24px);
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.welcome-container .logo-container {
  margin-bottom: 28px;
}

.welcome-container .logo-container img {
  max-width: 180px;
  height: auto;
}

.welcome-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #e9394f, #ff5566);
  border-radius: 3px;
  margin: 0 auto 28px;
}

.welcome-container h1 {
  margin-bottom: 12px;
  color: #222;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.welcome-subtitle {
  color: #777;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 36px;
  font-weight: 400;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.primary-btn {
  background: linear-gradient(135deg, #e9394f, #ff4d5e);
  color: white;
  box-shadow: 0 4px 15px rgba(233, 57, 79, 0.3);
  letter-spacing: 0.3px;
}

.primary-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(233, 57, 79, 0.4);
}

.primary-btn:hover::after {
  left: 100%;
}

.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(233, 57, 79, 0.3);
}

.secondary-btn {
  background: #f7f8fa;
  color: #444;
  border: 2px solid #eee;
}

.secondary-btn:hover {
  background: #fff;
  border-color: #e9394f;
  color: #e9394f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

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

.info-text {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}

.auth-status {
  display: none;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-status.logged-in {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-status.logged-in i {
  margin-right: 8px;
}

.auth-status.logged-out {
  background-color: #fff5f5;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ── Floating Language Switcher ── */
.page-lang-switcher {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: 16px;
  z-index: 999;
}

.page-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  padding: 7px 11px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: background 0.15s, box-shadow 0.15s;
  letter-spacing: 0.03em;
  font-family: inherit;
}

.page-lang-btn i {
  font-size: 14px;
  color: #e9394f;
}

.page-lang-btn:hover {
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,0.18);
}

.page-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  overflow: hidden;
  z-index: 1100;
  min-width: 136px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

.page-lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-lang-option {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  color: #374151;
  transition: background-color 0.12s;
  white-space: nowrap;
}

.page-lang-option:hover {
  background-color: #f8f9fa;
}

@media (max-width: 480px) {
  .welcome-container {
    padding: 40px 24px 32px;
    border-radius: 18px;
  }

  .welcome-container .logo-container img {
    max-width: 150px;
  }

  .welcome-container h1 {
    font-size: 22px;
  }

  .welcome-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }

  body.welcome-page::before {
    width: 280px;
    height: 280px;
  }

  body.welcome-page::after {
    width: 220px;
    height: 220px;
  }
}
