/* ================= RESET ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #000;
}

/* Evitar azul y subrayado */
a {
  color: #000;
  text-decoration: none;
}
a:hover,
a:visited {
  color: #000;
}

/* ================= VIDEO BACKGROUND ================= */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(1.2);
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0,180,255,.15), rgba(0,0,0,.7));
}







/* ================= PAGE CENTER ================= */
.page-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index:2;
}

/* ================= GLASS CARD ================= */
.formulario-login-registro {
  width: min(520px, 94vw);
  height: min(90vh, 900px);
  padding: 30px;
  border-radius: 26px;

  background: rgba(200,230,255,0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 0 45px rgba(0,180,255,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.25);

  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index:3;
}


.registro {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}



/* ================= SCROLL INTERNO ================= */

.scrolable {
  flex: 1;                 /* ← CLAVE */
  overflow-y: auto;
  padding-right: 10px;
  min-height: 0;           /* ← MUY IMPORTANTE EN FLEX */
}
.scrolable::-webkit-scrollbar {
  width: 6px;
}

.scrolable::-webkit-scrollbar-track {
  background: transparent;
}

.scrolable::-webkit-scrollbar-thumb {
  background: rgba(0,180,255,.5);
  border-radius: 10px;
}

.scrolable::-webkit-scrollbar-thumb:hover {
  background: rgba(0,180,255,.8);
}



/* Scroll elegante */
.scrolable::-webkit-scrollbar {
  width: 6px;
}
.scrolable::-webkit-scrollbar-thumb {
  background: rgba(0,180,255,.5);
  border-radius: 10px;
}

/* ================= FORM ================= */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-size: 0.85rem;
  opacity: .9;
}

input,
select {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: none;
  outline: none;
  background: rgba(255,255,255,.65);
  font-size: .85rem;
}

/* Botones */
button {
  padding: 12px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(0,180,255,.85), rgba(0,120,255,.85));
  color: #000;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(0,180,255,.6);
  transition: .25s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(0,180,255,.9);
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {

.page-wrapper {
    padding-top:20px;
    padding-bottom:20px;

}

  .formulario-login-registro {
    width: 96vw;
    height: 85vh;
    padding: 20px;
    padding-top:20px;
    padding-bottom:20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .formulario-login-registro {
    width: 520px;
  }
}

.landscape .formulario-login-registro {
  transform: scale(.95);
}