/* 
    Created on : 23 sep. 2026, 22:16:14
    Author     : Otto
*/
/* =========================================================
   BETZONE — login.jsp
   Neon Glassmorphism · Tokens propios de esta página
   Tarjeta de autenticación + floating labels + validación visual
   ========================================================= */

:root {
  /* Base */
  --bg-void: #0B0F19;
  --bg-void-deep: #06080f;

  /* Neón */
  --neon-amber: #FFEA00;
  --neon-orange: #FF6600;
  --neon-green: #00FF66;
  --neon-cyan: #00FFFF;
  --neon-magenta: #FF2D9E;

  /* Texto */
  --text-primary: #F4F6FB;
  --text-muted: #8A93A6;

  /* Glass */
  --glass-bg: rgba(18, 22, 36, 0.55);
  --glass-border: rgba(255, 255, 255, 0.10);
  --glass-blur: 14px;

  /* Tipografía */
  --font-display: "Space Grotesk", "Montserrat", sans-serif;
  --font-body: "Inter", "Roboto", sans-serif;

  /* Timing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.3s;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* =========================================================
   TARJETA DE AUTENTICACIÓN
   ========================================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  isolation: isolate;
}

.auth-page__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 45% at 15% 10%, rgba(0, 255, 255, 0.08), transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 90%, rgba(255, 102, 0, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-void-deep) 0%, var(--bg-void) 100%);
}

.auth-page__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 5, 10, 0.80);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 36px;
}

.auth-card__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.auth-card__brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 6px;
}

.auth-card__sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

/* Campo con floating label */
.field {
  position: relative;
}

.field__input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 8px 32px 8px 2px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}

.field__input:focus {
  border-bottom: 2px solid var(--neon-cyan);
}

.field__input.is-invalid {
  border-bottom-color: var(--neon-magenta-error, #FF0033);
}

.field__label {
  position: absolute;
  left: 2px;
  top: 8px;
  font-size: 15px;
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--t-fast) ease, color var(--t-fast) ease, top var(--t-fast) ease;
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label,
.field__input.has-value + .field__label {
  top: -14px;
  transform: scale(0.82);
  color: var(--neon-cyan);
}

.field__toggle {
  position: absolute;
  right: 0;
  top: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  transition: color var(--t-fast) var(--ease);
}
.field__toggle:hover { color: var(--neon-cyan); }
.field__toggle svg { display: block; width: 20px; height: 20px; }

.field__error {
  display: block;
  min-height: 16px;
  font-size: 12.5px;
  color: #FF0033;
  margin-top: 6px;
}

/* Checkbox +18 */
.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.field--checkbox input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--neon-green);
  flex-shrink: 0;
}

.field--checkbox label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.field--checkbox a {
  color: var(--neon-cyan);
}

/* Botón submit del formulario */
.btn--submit {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  border: none;
  color: #1a0a05;
  background: linear-gradient(100deg, var(--neon-orange), var(--neon-magenta));
  box-shadow: 0 0 0 rgba(255, 45, 158, 0);
}
.btn--submit:hover {
  box-shadow: 0 0 22px rgba(255, 45, 158, 0.5);
  transform: translateY(-1px);
}
.btn--submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: -8px;
}
.auth-links a { color: var(--neon-cyan); }
.auth-links a:hover { text-decoration: underline; }

.auth-card__footer {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 24px;
}
.auth-card__footer a {
  color: var(--neon-green);
  font-weight: 600;
}
.auth-card__footer a:hover { text-decoration: underline; }

.form-alert {
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 14px;
  display: none;
}
.form-alert.is-visible { display: block; }
.form-alert--error {
  background: rgba(255, 0, 51, 0.1);
  border: 1px solid rgba(255, 0, 51, 0.35);
  color: #ff5470;
}
.form-alert--success {
  background: rgba(0, 255, 102, 0.1);
  border: 1px solid rgba(0, 255, 102, 0.35);
  color: var(--neon-green);
}


