/*
 * From Uiverse.io by Admin12121 - https://uiverse.io/Admin12121/plastic-goose-38
 * MIT License, Copyright (c) Admin12121 (Admin12121)
 */

.zona-login-espacial {
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Escenario completo 100vh: botón redondo al centro + 4×2 tarjetas con esquinas cortadas */
.escenario-grid-login {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.uiverse-login-escenario {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Botón central redondo en reposo -> se expande a cápsula con el botón oficial de Google */
.uiverse-login-card {
  position: relative;
  width: 146px;
  height: 146px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(30, 35, 38, 0.86);
  backdrop-filter: blur(18px) saturate(185%);
  -webkit-backdrop-filter: blur(18px) saturate(185%);
  box-shadow: 0 20px 46px rgba(15, 22, 28, 0.34);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1), height 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.uiverse-login-card:focus-visible {
  box-shadow: 0 0 0 3px #1d6ce0, 0 20px 46px rgba(15, 22, 28, 0.38);
}

.aro-login-centro {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, #f59f00, #ea580c, #db2777, #2b9a22, #1d6ce0, #7c3aed, #0d9488, #f59f00);
  animation: rotar-360 6s linear infinite;
  pointer-events: none;
}

.uiverse-login-card.abierta-google {
  width: 326px;
  height: 92px;
  box-shadow: 0 26px 56px rgba(15, 22, 28, 0.42);
}

.uiverse-login-izq {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(28, 33, 36, 0.94);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: background 0.32s ease;
}

.uiverse-login-card.abierta-google .uiverse-login-izq {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.94) 0%, rgba(29, 108, 224, 0.94) 55%, rgba(124, 58, 237, 0.94) 100%);
}

.uiverse-google-emblema {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.uiverse-google-emblema svg {
  width: 56px;
  height: 56px;
  padding: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.etiqueta-login-centro {
  font-family: var(--fuente-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.uiverse-login-card.abierta-google .uiverse-google-emblema {
  animation: uiverse-subir-emblema 0.38s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.uiverse-zona-google {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
}

#contenedor-boton-google {
  min-width: 260px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uiverse-login-card.abierta-google .uiverse-zona-google {
  display: flex;
  animation: uiverse-subir-boton 0.36s cubic-bezier(0.165, 0.84, 0.44, 1) 0.14s both;
}

@keyframes uiverse-subir-emblema {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  100% { transform: translate3d(0, -76px, 0) scale(0.7); opacity: 0; }
}

@keyframes uiverse-subir-boton {
  0% { transform: translate3d(0, 20px, 0) scale(0.9); opacity: 0; }
  100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@media (max-width: 1024px) {
  .escenario-grid-login { gap: 16px; }
  .uiverse-login-escenario {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
  }
  .uiverse-login-card { width: 132px; height: 132px; }
  .uiverse-login-card.abierta-google { width: min(326px, 100%); height: 86px; }
}
