/* ======================================================
   Estela.app – Login Unificado con Identidad Visual
   Hoja de estilos v2.1 (Julio 2025, animación levitación)
   ====================================================== */

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

/* ------------------ Variables ------------------ */
:root {
  --c-primary: #00aaff;
  --c-primary-dark: #0077cc;
  --c-border: #ffffff33;
  --c-text: #f0f0f0;
  --c-text-muted: #bcbcbc;
  --c-shadow: rgba(0, 170, 255, 0.22);
  --c-surface: rgba(12, 18, 30, 0.74);
  --c-glass: rgba(24, 32, 45, 0.55);
}

/* ------------------ Fondo estelado ------------------ */
body {
  font-family: "Inter", Arial, sans-serif;
  min-height: 100vh;
  background: url("/recursos/imagenes/fondo_estelado.png") no-repeat center/cover fixed;
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  z-index: -1;
}

/* ------------------ Login Wrapper ------------------ */
.login-wrapper {
  width: 100%;
  max-width: 410px;
  padding: 0 1.2rem;
  margin: 0 auto;
}

.login-container {
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  border-radius: 22px;
  box-shadow: 0 8px 32px var(--c-shadow);
  padding: 48px 34px 32px 34px;
  margin: 0 auto;
  text-align: center;
  animation: fadeInUp 0.7s cubic-bezier(.32,1.44,.68,1.1);
  backdrop-filter: blur(8px);
}

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

/* ----------- Logo Levitando ----------- */
.login-logo {
  width: 112px;
  height: 112px;
  margin-bottom: 25px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  object-fit: contain;
  border-radius: 18px;
  background: transparent;
  animation: fadeZoomIn 1.2s, levitarEstela 2.9s ease-in-out infinite alternate;
  filter: drop-shadow(0 8px 32px #00aaff44);
  will-change: transform;
}

@keyframes fadeZoomIn {
  0% { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes levitarEstela {
  0% { transform: translateY(0) scale(1);}
  40% { transform: translateY(-10px) scale(1.04);}
  60% { transform: translateY(-12px) scale(1.05);}
  100% { transform: translateY(0) scale(1);}
}

/* ----------- Títulos ----------- */
.login-container h2 {
  margin-bottom: 20px;
  font-size: 1.58rem;
  font-weight: 500;
  color: var(--c-primary);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 18px #0077cc18;
}

/* ----------- Google Login ----------- */
#g_id_onload,
.g_id_signin {
  display: flex !important;
  justify-content: center;
  margin-bottom: 10px;
}

/* ----------- Footer o textos secundarios ----------- */
.register-link, .login-or {
  margin-top: 17px;
  font-size: 14px;
  color: var(--c-text-muted);
}

.login-or {
  margin: 12px 0 8px;
  color: #bcbcbc;
}

/* ----------- Responsive ----------- */
@media (max-width: 520px) {
  .login-container {
    padding: 32px 8px 18px 8px;
    border-radius: 16px;
  }
  .login-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
  }
  .login-container h2 {
    font-size: 1.11rem;
    margin-bottom: 14px;
  }
}

/* ----------- Accesibilidad / scroll ----------- */
html, body {
  scroll-behavior: smooth;
  min-height: 100vh;
}

/* ----------- Legal Modal Override ----------- */
.modal-legal {
  background: var(--c-glass) !important;
  color: var(--c-text) !important;
  border: 1.5px solid var(--c-border) !important;
  border-radius: 20px !important;
}

/* ----------- Shadows y glass extra para efectos ----------- */
.login-container {
  box-shadow: 0 0 16px 0 #00aaff33, 0 8px 32px var(--c-shadow);
}

/* ----------- Eliminar estilos antiguos de .login-form ----------- */
.login-form,
.login-form input,
.login-form button {
  all: unset;
  display: none !important;
}
