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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Splash gradient - matches Flutter splash exactly */
/* Flutter: topLeft → bottomRight = CSS: to bottom right */
.splash-gradient {
  background: linear-gradient(
    to bottom right,
    #FF1493 0%,
    #9C27B0 100%
  );
}

/* Fade out animation */
.fade-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

/* ===== SPLASH SCREEN ===== */
#splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#splash .logo-float {
  width: 200px;
  height: 200px;
  animation: float 2s ease-in-out infinite alternate;
}

@keyframes float {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(10px);
  }
}

/* ===== SPLASH LOADING ===== */
#splash-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 1000;
}

#splash-loading .logo-float {
  width: 200px;
  height: 200px;
  animation: float 2s ease-in-out infinite alternate;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== LANDING PAGE ===== */
.landing-gradient {
  background: linear-gradient(
    160deg,
    #FF146C 0%,
    #F052CD 33%,
    #4F84C2 66%,
    #4AF6B1 100%
  );
}

#landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  z-index: 999;
  padding: 10px 16px 20px;
  box-sizing: border-box;
  transition: opacity 0.3s ease-out;
}

#landing.visible {
  display: flex;
  opacity: 1;
}

/* Landing logo */
#landing .landing-logo {
  height: 60px;
  margin-bottom: 0;
}

/* Landing hero */
#landing .landing-hero {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
}

/* Landing title */
#landing h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: white;
  text-align: center;
  line-height: 1.1;
  margin: 15px 0 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

#landing .subtitle {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 6px;
}

/* Button container with gems - Stack-like behavior */
#landing .button-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 108px;
  /* Padding to make space for gems, like Flutter's horizontal padding: 60 */
  padding: 0 60px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

#landing .gem-left {
  position: absolute;
  left: 27px;
  top: 0;
  height: 59px;
  z-index: 1;
}

#landing .gem-right {
  position: absolute;
  right: 23px;
  bottom: 0;
  height: 61px;
  z-index: 1;
}

#landing .btn-iniciar {
  background: black;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  /* Full width within padded container, like Flutter */
  width: 100%;
  height: 54px;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 0;
}

#landing .btn-iniciar:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#landing .btn-iniciar:active {
  transform: scale(0.98);
}

/* Login link */
#landing .login-link {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: black;
  cursor: pointer;
  margin: 16px 0;
  transition: opacity 0.2s;
}

#landing .login-link:hover {
  opacity: 0.7;
}

/* Terms */
#landing .terms {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: white;
  text-align: center;
  line-height: 1.4;
  max-width: 280px;
}

#landing .terms a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
}
