@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body, html {
  height: 100%;
}

/* Contenedor de login */
.login-bg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vídeo de fondo */
.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%,-50%);
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6);
}

/* Glassmorphism card */
.login-card {
  position: relative;
  max-width: 380px;
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  backdrop-filter: blur(25px);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  z-index: 1;
}

.login-card h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.error {
  background: rgba(220,53,69,0.8);
  color: #fff;
  padding: 8px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Inputs */
.inputbox {
  position: relative;
  width: 100%;
  margin: 1.2rem 0;
  border-bottom: 2px solid rgba(255,255,255,0.5);
}

.inputbox ion-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.2rem;
}

.inputbox input {
  width: 100%;
  padding: 10px 40px 10px 5px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
}

.inputbox label {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  pointer-events: none;
  transition: .5s;
}

.inputbox input:focus ~ label,
.inputbox input:valid ~ label {
  top: -8px;
  font-size: .85rem;
  color: #fff;
}

/* Forget */
.forget {
  display: flex;
  justify-content: space-between;
  color: #fff;
  font-size: .9rem;
  margin: 1rem 0;
}

.forget a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.forget a:hover {
  text-decoration: underline;
}

/* Botón */
button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 40px;
  background: rgba(255,255,255,1);
  color: #2b5876;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.4s;
}

button:hover {
  background: rgba(255,255,255,0.6);
}

/* Registro */
.register {
  margin-top: 1.5rem;
}

.register p {
  color: #fff;
  font-size: .9rem;
}

.register p a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.register p a:hover {
  text-decoration: underline;
}
