/**
 * CONFUT Welcome - Matching provided mockup
 */

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

.welcome-premium {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  color: #f5f7fa;
  overflow-x: hidden;
  position: relative;
  background:
    radial-gradient(920px 460px at 50% 24%, rgba(214, 170, 64, 0.07) 0%, transparent 62%),
    linear-gradient(135deg, #071a33 0%, #0a2647 56%, #061429 100%);
}

.welcome-premium::before {
  content: none;
}

.welcome-premium::after {
  content: none;
}

.noise-svg {
  display: none;
}

.welcome-layout {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 34px 18px;
}

.welcome-hero {
  text-align: center;
  margin-bottom: 22px;
}

.welcome-logo-stack {
  position: relative;
  display: inline-block;
  width: 230px;
  max-width: 70vw;
  margin: 0 auto 18px;
}

.welcome-logo {
  width: 100%;
  height: auto;
  display: block;
}

.welcome-logo-overlay {
  position: static;
  opacity: 1;
  filter:
    drop-shadow(0 0 1.8px rgba(255, 255, 255, 0.70))
    drop-shadow(0 8px 18px rgba(255, 255, 255, 0.10));
  pointer-events: none;
}

.welcome-title {
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.welcome-subtitle {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400;
  color: #d3dbea;
}

.welcome-panel {
  width: min(95vw, 760px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 20px 50px rgba(5, 18, 40, 0.35),
    0 0 0 1px rgba(214, 170, 64, 0.18) inset;
  padding: 16px 16px 12px;
}

.welcome-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.welcome-card {
  border-radius: 18px;
  padding: 22px 20px;
  min-height: 168px;
  border: 1px solid rgba(10, 38, 71, 0.08);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome-card.light {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #0a2647;
  box-shadow: 0 12px 30px rgba(18, 28, 48, 0.16);
}

.welcome-card.primary {
  background: linear-gradient(145deg, #0a2647 0%, #123866 45%, #071b35 100%);
  color: #f5f7fa;
  box-shadow: 0 16px 38px rgba(0, 24, 74, 0.58);
}

.welcome-card.primary::before {
  content: none;
}

.welcome-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(7, 27, 53, 0.24);
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.card-head svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  margin-top: 2px;
}

.welcome-card.light .card-head svg {
  color: rgba(154, 111, 0, 1);
}

.welcome-card.primary .card-head svg {
  color: #9a6f00;
}

.welcome-card h3 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.card-head h1 {
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.welcome-card.light .card-head h1 {
  color: #0a2647;
}

.welcome-card.primary .card-head h1 {
  color: #ffffff;
}

.welcome-card p {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.95;
}

.welcome-card.light p {
  color: #4b5f7d;
}

.language-selector {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(10, 38, 71, 0.16);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #0a2647;
  font-size: 15px;
  font-weight: 700;
}

.language-selector svg {
  width: 16px;
  height: 16px;
  color: #9a6f00;
}

.language-selector a {
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.language-selector a:hover {
  color: #0a2647;
  opacity: 1;
}

.language-selector a.active {
  color: #9a6f00;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #9a6f00;
}

.language-selector .lang-sep {
  opacity: 0.65;
}

@media (max-width: 760px) {
  .welcome-options {
    grid-template-columns: 1fr;
  }

  .welcome-panel {
    width: min(94vw, 500px);
  }

  .welcome-title {
    font-size: 30px;
  }

  .welcome-subtitle {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-card {
    transition: none;
  }
}
