/* =========================================================
   TOKENS / VARIABLES
   Edita colores, radios, sombras y tamaños acá
   ========================================================= */
:root {
  /* Paleta */
  --bg1: #0d1b2a;
  --bg2: #1b263b;
  --bg3: #243b55;
  --text: #e2e8f0;
  --muted: #94a3b8;

  /* Accentos / efectos */
  --ring: #60a5fa;

  /* Layout + estética */
  --radius: 20px;
  --card-border: rgba(255, 255, 255, 0.10);
  --card-bg-top: rgba(255, 255, 255, 0.06);
  --card-bg-bottom: rgba(255, 255, 255, 0.03);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);

  /* Tipografía */
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Botones */
  --btn-h: 48px;
  --btn-radius: 12px;

  /* Grid de fondo */
  --grid-size: 40px;
}

/* =========================================================
   RESETEO BÁSICO
   ========================================================= */
* { box-sizing: border-box; }

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(34, 211, 238, 0.15), transparent 60%),
    linear-gradient(120deg, var(--bg1), var(--bg2), var(--bg3));
  background-size: 100% 100%;
  overflow-x: hidden;
}

/* =========================================================
   FONDO ANIMADO
   ========================================================= */
.bg-anim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-anim::before {
  content: '';
  position: absolute;
  inset: -40% -40% -40% -40%;
  background: conic-gradient(
    from 0deg,
    rgba(96, 165, 250, 0.15),
    rgba(34, 211, 238, 0.08),
    rgba(56, 189, 248, 0.12),
    rgba(99, 102, 241, 0.08),
    rgba(96, 165, 250, 0.15)
  );
  filter: blur(80px);
  animation: swirl 24s linear infinite;
  opacity: 0.6;
}

/* Cuadrícula sutil */
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  /* máscara para desvanecer hacia los bordes */
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  animation: gridMove 12s linear infinite;
}

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */
.container {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--card-bg-top), var(--card-bg-bottom));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

/* =========================================================
   ORB / LOGO GOOGLE
   ========================================================= */
.orb {
  width: 120px;
  height: 120px;
  margin: 6px auto 12px;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 24px rgba(96, 165, 250, 0.35));
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.35);
  animation: ringPulse 4s ease-in-out infinite;
}

.ring-2 {
  animation-delay: 0.7s;
  transform: scale(0.86);
}

.ring-3 {
  animation-delay: 1.4s;
  transform: scale(1.18);
}

.g-logo {
  width: 56px;
  height: 56px;
  z-index: 1;
  animation: float 3.2s ease-in-out infinite;
}

/* =========================================================
   TIPOGRAFÍA / TITULOS
   ========================================================= */
.title {
  margin: 6px 0 2px;
  font-weight: 700;
  font-size: 28px;
  text-align: center;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   FORMULARIO / BOTONES
   ========================================================= */
form {
  display: grid;
  gap: 14px;
}

.btn {
  height: var(--btn-h);
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* Botón Google blanco */
.btn.google {
  background: #fff;
  color: #202124;
  border: 1px solid #dadce0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn.google:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.btn:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.6);
  outline-offset: 2px;
}

/* Icono dentro del botón */
.g-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.g-icon img {
  width: 18px;
  height: 18px;
}

/* =========================================================
   TEXTOS AUXILIARES / ESTADOS
   ========================================================= */
.hint {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.app-content {
  margin-top: 16px;
}

/* Caja de usuario (avatar + info) */
.userbox {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 16px auto 8px;
}

.userbox img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.uinfo {
  line-height: 1.2;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

/* Mensaje de bloqueo */
.blocked {
  margin-top: 14px;
  text-align: center;
  color: #fda4af; /* rojo suave */
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
@keyframes swirl {
  to { transform: rotate(360deg); }
}

@keyframes gridMove {
  to { background-position: 0 var(--grid-size), var(--grid-size) 0; }
}

@keyframes ringPulse {
  50% { box-shadow: 0 0 30px 6px rgba(34, 211, 238, 0.35); }
}

@keyframes float {
  50% { transform: translateY(-6px); }
}

/* =========================================================
   ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .bg-anim::before,
  .grid,
  .ring,
  .g-logo {
    animation: none !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 480px) {
  .card { padding: 22px; }
  .title { font-size: 24px; }
}

@media (max-width: 360px) {
  .g-logo { width: 48px; height: 48px; }
  .btn { height: 44px; }
}
/* =========================================================
   TOKENS / VARIABLES
   Edita colores, radios, sombras y tamaños acá
   ========================================================= */
:root {
  /* Paleta */
  --bg1: #0d1b2a;
  --bg2: #1b263b;
  --bg3: #243b55;
  --text: #e2e8f0;
  --muted: #94a3b8;

  /* Accentos / efectos */
  --ring: #60a5fa;

  /* Layout + estética */
  --radius: 20px;
  --card-border: rgba(255, 255, 255, 0.10);
  --card-bg-top: rgba(255, 255, 255, 0.06);
  --card-bg-bottom: rgba(255, 255, 255, 0.03);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);

  /* Tipografía */
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Botones */
  --btn-h: 48px;
  --btn-radius: 12px;

  /* Grid de fondo */
  --grid-size: 40px;
}

/* =========================================================
   RESETEO BÁSICO
   ========================================================= */
* { box-sizing: border-box; }

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 10% 10%, rgba(34, 211, 238, 0.15), transparent 60%),
    linear-gradient(120deg, var(--bg1), var(--bg2), var(--bg3));
  background-size: 100% 100%;
  overflow-x: hidden;
}

/* =========================================================
   FONDO ANIMADO
   ========================================================= */
.bg-anim {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-anim::before {
  content: '';
  position: absolute;
  inset: -40% -40% -40% -40%;
  background: conic-gradient(
    from 0deg,
    rgba(96, 165, 250, 0.15),
    rgba(34, 211, 238, 0.08),
    rgba(56, 189, 248, 0.12),
    rgba(99, 102, 241, 0.08),
    rgba(96, 165, 250, 0.15)
  );
  filter: blur(80px);
  animation: swirl 24s linear infinite;
  opacity: 0.6;
}

/* Cuadrícula sutil */
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  /* máscara para desvanecer hacia los bordes */
  mask-image: radial-gradient(circle at 50% 40%, black 0%, transparent 70%);
  animation: gridMove 12s linear infinite;
}

/* =========================================================
   LAYOUT PRINCIPAL
   ========================================================= */
.container {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, var(--card-bg-top), var(--card-bg-bottom));
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}

/* =========================================================
   ORB / LOGO GOOGLE
   ========================================================= */
.orb {
  width: 120px;
  height: 120px;
  margin: 6px auto 12px;
  position: relative;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 24px rgba(96, 165, 250, 0.35));
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(96, 165, 250, 0.35);
  animation: ringPulse 4s ease-in-out infinite;
}

.ring-2 {
  animation-delay: 0.7s;
  transform: scale(0.86);
}

.ring-3 {
  animation-delay: 1.4s;
  transform: scale(1.18);
}

.g-logo {
  width: 56px;
  height: 56px;
  z-index: 1;
  animation: float 3.2s ease-in-out infinite;
}

/* =========================================================
   TIPOGRAFÍA / TITULOS
   ========================================================= */
.title {
  margin: 6px 0 2px;
  font-weight: 700;
  font-size: 28px;
  text-align: center;
  letter-spacing: 0.2px;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   FORMULARIO / BOTONES
   ========================================================= */
form {
  display: grid;
  gap: 14px;
}

.btn {
  height: var(--btn-h);
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* Botón Google blanco */
.btn.google {
  background: #fff;
  color: #202124;
  border: 1px solid #dadce0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn.google:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.btn:focus-visible {
  outline: 3px solid rgba(96, 165, 250, 0.6);
  outline-offset: 2px;
}

/* Icono dentro del botón */
.g-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

.g-icon img {
  width: 18px;
  height: 18px;
}

/* =========================================================
   TEXTOS AUXILIARES / ESTADOS
   ========================================================= */
.hint {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.app-content {
  margin-top: 16px;
}

/* Caja de usuario (avatar + info) */
.userbox {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 16px auto 8px;
}

.userbox img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.uinfo {
  line-height: 1.2;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

/* Mensaje de bloqueo */
.blocked {
  margin-top: 14px;
  text-align: center;
  color: #fda4af; /* rojo suave */
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
@keyframes swirl {
  to { transform: rotate(360deg); }
}

@keyframes gridMove {
  to { background-position: 0 var(--grid-size), var(--grid-size) 0; }
}

@keyframes ringPulse {
  50% { box-shadow: 0 0 30px 6px rgba(34, 211, 238, 0.35); }
}

@keyframes float {
  50% { transform: translateY(-6px); }
}

/* =========================================================
   ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .bg-anim::before,
  .grid,
  .ring,
  .g-logo {
    animation: none !important;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 480px) {
  .card { padding: 22px; }
  .title { font-size: 24px; }
}

@media (max-width: 360px) {
  .g-logo { width: 48px; height: 48px; }
  .btn { height: 44px; }
}
