﻿/* Portada de Galaxy Universe: el diseño de 1600×900 a pantalla completa (16:9, sin deformarse) y encima los controles de verdad
   en sus mismas posiciones (porcentajes). Los tamaños de letra van en cqh (alto de la escena) para escalar con ella. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #03060f; overflow: hidden; font-family: Rajdhani, 'Segoe UI', sans-serif; color: #e8f2ff; }

#relleno { position: fixed; inset: -40px; background: #03060f url(../images/portada_login.png) center / cover no-repeat;
           filter: blur(18px) brightness(.55); }
/* la escena llena toda la ventana (scripts/fondo_login.js ajusta el tamaño: estira un poco o recorta); sin JS, cubre recortando */
/* fixed: aunque la escena sea más ancha que la pantalla, no agranda la página (en el móvil la desplazaba y descolocaba los campos) */
#escena { position: fixed; left: 50%; top: 50%; translate: -50% -50%;
          width: min(max(100vw, calc(100vh * 16 / 9)), calc(100vw / .53));
          height: calc(min(max(100vw, calc(100vh * 16 / 9)), calc(100vw / .53)) * 9 / 16); container-type: size; }
#arte, #arte_vivo { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; pointer-events: none; }
#escena > *, #f_login > * { position: absolute; }
#f_login { position: absolute; inset: 0; pointer-events: none; }
#f_login > * { pointer-events: auto; }

/* menú del globo: los idiomas (scripts/conexion.js) */
#m_idioma { right: 1.2%; top: 8.4%; display: flex; flex-direction: column; gap: .4cqh; padding: .8cqh; z-index: 5;
            background: rgba(6, 16, 34, .94); border: .2cqh solid #2f6fb5; border-radius: .8cqh; box-shadow: 0 0 2cqh rgba(40, 140, 255, .35); }
#m_idioma[hidden] { display: none; }
#m_idioma button { font: 600 2.3cqh Rajdhani, sans-serif; color: #dfeeff; background: transparent; border: 0; border-radius: .5cqh;
                   padding: .5cqh 2cqh; text-align: left; cursor: pointer; }
#m_idioma button:hover { background: rgba(90, 190, 255, .18); }
#m_idioma button.actual { color: #3fd0ff; }
.p-select { margin-left: 1cqh; font: 600 2.2cqh Rajdhani, sans-serif; color: #e8f2ff; background: #0b1730; border: .2cqh solid #2f6fb5;
            border-radius: .6cqh; padding: .3cqh 1cqh; }

/* zonas pulsables sobre los botones dibujados */
.zona { display: block; margin: 0; padding: 0; border: 0; border-radius: 1.2cqh; background: transparent; cursor: pointer; }
.zona:hover { background: rgba(90, 190, 255, .10); box-shadow: 0 0 2cqh rgba(80, 180, 255, .35), inset 0 0 1.2cqh rgba(120, 210, 255, .25); }
.zona:active { background: rgba(90, 190, 255, .2); }
.zona:focus-visible { outline: .25cqh solid #6fd3ff; }
#b_iniciar { border-radius: 3cqh; }
#b_iniciar:hover { box-shadow: 0 0 4cqh rgba(80, 180, 255, .55), inset 0 0 2cqh rgba(140, 220, 255, .35); }
#b_iniciar:disabled { cursor: wait; background: rgba(0, 0, 0, .25); }

/* campos: tapan el texto dibujado ("Usuario", "Contraseña") con el color del interior del campo */
.campo { border: 0; outline: 0; padding: 0 .8cqh; font: 600 2.7cqh Rajdhani, sans-serif; color: #f2f7ff;
         background: linear-gradient(#0b1730, #0a142b); border-radius: .6cqh; caret-color: #6fd3ff; }
.campo::placeholder { color: #a9b6cc; opacity: 1; }
.campo:focus { box-shadow: 0 0 0 .2cqh rgba(111, 211, 255, .55); }
/* "Recordar cuenta": la marca está dibujada; sin marcar se tapa */
#sin_marca { background: #0b1630; border: .2cqh solid #5c88b8; border-radius: .3cqh; pointer-events: none; }
#sin_marca.oculto { display: none; }
#mudo { pointer-events: none; display: none; background: linear-gradient(45deg, transparent 46%, #ff5a6a 47% 53%, transparent 54%); }
#mudo.si { display: block; }

#msg { left: 25%; width: 50%; top: 66.4%; margin: 0; text-align: center; font: 600 2.3cqh Rajdhani, sans-serif; color: #ff8a7a;
       text-shadow: 0 0 .6cqh #000, 0 0 1.2cqh #000; pointer-events: none; }
#msg.ok { color: #8ff0c0; }

/* paneles con el estilo del diseño: vidrio oscuro, borde cian, título Orbitron */
#velo { inset: 0; background: rgba(2, 6, 16, .55); backdrop-filter: blur(.4cqh); }
.panel { left: 31.5%; top: 41%; width: 37%; padding: 2.4cqh 3cqh 2.6cqh; display: flex; flex-direction: column; gap: 1.3cqh;
         background: linear-gradient(160deg, rgba(10, 24, 52, .96), rgba(8, 14, 34, .97)); border: .25cqh solid #3fa9ff;
         border-radius: 1.6cqh; box-shadow: 0 0 3cqh rgba(60, 160, 255, .45), inset 0 0 2cqh rgba(70, 140, 255, .18); }
.panel[hidden], #velo[hidden] { display: none; }
.panel h2 { margin: 0 0 .4cqh; text-align: center; font: 800 3.4cqh Orbitron, sans-serif; letter-spacing: .3cqh;
            background: linear-gradient(#ffffff, #9fd4ff 55%, #b48cff); -webkit-background-clip: text; background-clip: text; color: transparent;
            filter: drop-shadow(0 0 .8cqh rgba(90, 180, 255, .6)); }
.panel form { display: flex; flex-direction: column; gap: 1.2cqh; }
.p-campo { height: 5cqh; padding: 0 1.4cqh; border: .2cqh solid #2f6fb5; border-radius: .8cqh; outline: 0;
           background: rgba(6, 14, 32, .9); color: #f2f7ff; font: 600 2.4cqh Rajdhani, sans-serif; }
.p-campo:focus { border-color: #6fd3ff; box-shadow: 0 0 1.2cqh rgba(111, 211, 255, .4); }
.p-campo::placeholder { color: #8796ad; }
.p-campo[hidden] { display: none; }
.p-casilla { display: flex; align-items: center; gap: 1cqh; font: 600 2.2cqh Rajdhani, sans-serif; cursor: pointer; }
.p-casilla input { width: 2.2cqh; height: 2.2cqh; accent-color: #3fa9ff; }
.p-nota { margin: 0; text-align: center; font: 500 2.1cqh Rajdhani, sans-serif; color: #b7c6dc; }
.p-botones { display: flex; gap: 1.6cqh; justify-content: center; margin-top: .6cqh; }
.p-boton { min-width: 30%; height: 5.4cqh; padding: 0 2.4cqh; cursor: pointer; font: 700 2.3cqh Orbitron, sans-serif; letter-spacing: .15cqh;
           color: #fff; border: .2cqh solid #6fd3ff; border-radius: 1cqh; background: linear-gradient(#2a74d6, #123a86);
           box-shadow: 0 0 1.6cqh rgba(80, 170, 255, .55); }
.p-boton.sec { border-color: #4f6a92; background: linear-gradient(#1c2c4a, #0e1830); box-shadow: none; }
.p-boton:hover { filter: brightness(1.15); }
.p-boton:disabled { filter: grayscale(.6); cursor: wait; }
.empresas { display: flex; gap: 1.4cqh; }
.emp { flex: 1; padding: 1.6cqh 1cqh; display: flex; flex-direction: column; gap: .5cqh; cursor: pointer; color: #fff;
       background: rgba(8, 16, 36, .9); border: .25cqh solid #4d5d7a; border-radius: 1cqh; font: 600 1.8cqh Rajdhani, sans-serif; }
.emp b { font: 800 3.4cqh Orbitron, sans-serif; letter-spacing: .3cqh; }
.emp.mmo { border-color: #e2434a; } .emp.eic { border-color: #2f8cff; } .emp.vru { border-color: #e8c22a; }
.emp:hover { box-shadow: 0 0 2cqh currentColor; filter: brightness(1.2); }
