/* =====================================
   LasNets - Estilos Responsivos con Glassmorphism
   Archivo: assets/css/style.css
   ===================================== */

:root {
  --color-bg: #0b1220;
  --color-card: rgba(255, 255, 255, 0.08);
  --color-panel: rgba(255, 255, 255, 0.15);
  --color-text: #ffffff;
  --color-accent: #00c3ff;
  --blur: 8px;
  --radius: 18px;
  --transition: 0.3s ease-in-out;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  font-family: "Poppins", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: url("../img/bg.jpg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  font-family: "Poppins", sans-serif;
}

/* ====== Fondo con imagen + desenfoque ====== */
.bg-anim {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 30, 0.3), rgba(0, 0, 50, 0.4)), url("../img/bg.jpg") center/cover no-repeat;
  filter: brightness(0.95);
  transform: scale(1.05);
  z-index: -2;
}

/* Capa translúcida para brillo dinámico */
.bg-anim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.05), transparent 50%),
              radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.02), transparent 40%);
  animation: bgGlow 10s infinite alternate;
}

@keyframes bgGlow {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.7; transform: scale(1.05); }
}

/* ====== Contenedor Principal ====== */
main.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  height: 100vh;
  padding: 2rem;
  position: relative;
  z-index: 2;
}

/* ====== Tarjeta Izquierda ====== */
.card {
  flex: 1;
  background: rgba(255, 255, 255, 0.05); /* 🔹 Más transparente */
  backdrop-filter: blur(2px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
  z-index: 2;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Avatar */
.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.2rem;
  border: 3px solid var(--color-accent);
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease-in-out;
}

.avatar img.contain {
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Textos principales */
h1 {
  font-size: 1.8rem;
  margin-top: 0.6rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.desc {
  font-size: 1rem;
  opacity: 0.9;
  margin-top: 0.6rem;
  margin-bottom: 0.8rem; /* <-- Aumentado para separar textos */
  max-width: 350px;
  line-height: 1.5; /* <-- Mejora de legibilidad */
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

.badge {
  margin-top: 0.8rem;
  background: var(--color-accent);
  color: #0b1220;
  padding: 0.4rem 0.8rem;
  border-radius: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.anuncio-controles {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 0.6rem;
  border-radius: 50%;
  color: var(--color-text);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ====== Panel Derecha ====== */
.panel {
  flex: 1;
  background: rgba(255, 255, 255, 0.05); /* 🔹 Muy transparente */
  backdrop-filter: blur(2px) saturate(150%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.panel .welcome {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.panel .desc {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1.8rem;
}

/* ====== Formulario ====== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--color-text);
  padding: 0.8rem 1rem;
  outline: none;
  font-size: 1rem;
}

.icon-circle {
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
}

.icon-circle span {
  font-size: 1.4rem;
  color: var(--color-accent);
}

/* Botones */
.actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
}

.btn {
  flex: 1;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-weight: 600;
  cursor: pointer;
  color: #0b1220;
  transition: var(--transition);
}

.btn:hover {
  background: #06b6d4;
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-text);
}

.btn.ghost:hover {
  background: var(--color-accent);
  color: #0b1220;
}

.small {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ====== Responsividad ====== */
@media (max-width: 992px) {
  main.container {
    flex-direction: column;
    align-items: center;
    height: auto;
  }

  .card, .panel {
    width: 90%;
    max-width: 500px;
    margin-bottom: 1.5rem;
  }

  .panel {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }

  .desc {
    font-size: 0.95rem;
  }

  .login-form {
    max-width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  main.container {
    padding: 1rem;
  }

  .card, .panel {
    padding: 1.2rem;
    z-index: 2;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: 1.3rem;
  }

  .panel .desc {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.7rem;
  }
}

/* glassmorphism */
.glass-card, .login-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}


body {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* Fondo con opacidad controlada */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/bg.jpg") no-repeat center center fixed;
  background-size: cover;
  opacity: 0.08; /* 🔥 Ajusta aquí la transparencia (0 = invisible, 1 = opaco) */
  z-index: -1; /* Mantiene el fondo detrás de todo */
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
}
