@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --text-main: #ffffff;
  --text-muted: #a3a3a3;
  --accent: #ffffff;
  --input-bg: rgba(0, 0, 0, 0.6);
  --input-border: rgba(255, 255, 255, 0.15);
  --btn-gradient-start: #ffffff;
  --btn-gradient-end: #a3a3a3;
  --error-bg: rgba(220, 38, 38, 0.25);
  --error-text: #fca5a5;
  --success-bg: rgba(22, 101, 52, 0.25);
  --success-text: #86efac;
}

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

body {
  margin: 0; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  font-family: "Montserrat", sans-serif;
  color: var(--text-main);
  overflow: hidden;
  background-color: #000;
}

/* --- VIDEO DE FONDO (ESTRELLAS) --- */
#bg-video {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw; min-height: 100vh;
  width: auto; height: auto;
  z-index: -1;
  object-fit: cover;
  /* Filtros para hacerlo "HD" y que resalten las estrellas */
  filter: brightness(0.6) contrast(1.2) saturate(1.1);
  transition: opacity 1s ease-in-out;
}

.auth-container { width: 100%; max-width: 450px; padding: 20px; position: relative; z-index: 1; }

/* TARJETA GLASSMORPHISM */
.auth-card {
  background: rgba(8, 8, 10, 0.75); /* Fondo oscuro solido */
  backdrop-filter: blur(15px); /* Desenfoque elegante */
  -webkit-backdrop-filter: blur(15px);
  border-radius: 24px; padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  display: flex; flex-direction: column;
}

/* Resto de estilos (Marca, Inputs) iguales para mantener coherencia */
.brand-mini { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; }
.brand-symbol { width: 45px; height: 45px; border-radius: 50%; background: radial-gradient(circle at 30% 20%, #fff, #999 50%, #111 100%); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: #000; box-shadow: 0 0 20px rgba(255,255,255,0.3); }
.brand-name { font-size: 1.2rem; letter-spacing: 0.1em; text-transform: uppercase; color: white; font-weight: 700; }
.auth-content { text-align: center; }
h1 { font-size: 2rem; margin: 0 0 10px; font-weight: 700; }
.subtitle { margin: 0 0 25px; color: var(--text-muted); font-size: 0.95rem; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; text-align: left; }
.field label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; margin-left: 5px; }
.field input { background: var(--input-bg); border-radius: 12px; border: 1px solid var(--input-border); padding: 14px 18px; color: var(--text-main); font-size: 1rem; outline: none; transition: 0.3s; }
.field input:focus { border-color: rgba(255,255,255,0.8); background: rgba(0,0,0,0.8); box-shadow: 0 0 15px rgba(255, 255, 255, 0.1); }
.primary-btn { margin-top: 10px; width: 100%; border-radius: 12px; border: none; padding: 16px; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer; color: #050505; background: linear-gradient(145deg, #ffffff, #999999); box-shadow: 0 5px 20px rgba(0,0,0,0.4); transition: 0.2s; }
.primary-btn:hover { transform: translateY(-2px); background: white; box-shadow: 0 10px 30px rgba(255,255,255,0.2); }
.switch-text { margin-top: 30px; font-size: 0.9rem; color: var(--text-muted); }
.switch-text a { color: white; text-decoration: none; font-weight: 700; border-bottom: 1px solid transparent; }
.switch-text a:hover { border-bottom: 1px solid white; }
.alert-box { padding: 12px; border-radius: 8px; margin-bottom: 20px; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; text-align: left; }
.alert-error { background: rgba(255, 0, 0, 0.2); color: #ffcccc; border: 1px solid #ff6666; }
.alert-success { background: rgba(0, 255, 0, 0.2); color: #ccffcc; border: 1px solid #66ff66; }