/* Pantalla de entrada (22/11/2026, Fran: «¿esto también podemos modernizarlo?»; login.php) y la de salir (logout.php).
   En el ordenador, dos mitades: a la izquierda, la marca sobre el oscuro de la barra de arriba; a la derecha, el acceso.
   En el móvil, solo el acceso, con el logo arriba. El morado de los botones es el del resto del programa. */
html, body.en-pagina { height: 100%; }
body.en-pagina { margin: 0; background: #fff; color: #111827; font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif; }
.en-marco { display: grid; grid-template-columns: minmax(380px, 46%) minmax(0, 1fr); min-height: calc(100vh / var(--rz, 1)); min-height: calc(100dvh / var(--rz, 1)); }

/* La marca */
.en-marca { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: 44px 52px; background: #1f2937; color: #fff; }
.en-logo { position: relative; z-index: 1; display: block; align-self: flex-start; width: auto; height: 40px; }
.en-lema { position: relative; z-index: 1; max-width: 440px; }
.en-lema h2 { margin: 0 0 14px; color: #fff; font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.en-lema p { margin: 0; color: #9ca3af; font-size: 16.5px; line-height: 1.6; }
.en-rombos { position: absolute; right: -130px; bottom: -150px; width: 440px; height: auto; opacity: .9; pointer-events: none; }
.en-pie { position: relative; z-index: 1; color: #6b7280; font-size: 13px; }

/* El acceso */
.en-acceso { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.en-caja { width: 100%; max-width: 380px; }
.en-logo-movil { display: none; }
.en-caja h1 { margin: 0 0 6px; color: #111827; font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.en-sub { margin: 0 0 30px; color: #6b7280; font-size: 15px; }
.en-caja label { display: block; margin: 0 0 7px; color: #374151; font-size: 14px; font-weight: 600; }
.en-campo { position: relative; margin: 0 0 18px; }
.en-campo > i { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); color: #9ca3af; font-size: 15px; pointer-events: none;
    transition: color .15s; }
.en-campo:focus-within > i { color: #762fde; }
.en-campo input { box-sizing: border-box; width: 100%; height: 50px; margin: 0; padding: 0 14px 0 44px; border: 1.5px solid #d1d5db;
    border-radius: 11px; outline: none; background: #fff; color: #111827; font-family: inherit; font-size: 16px;
    transition: border-color .15s, box-shadow .15s; }
.en-campo input::placeholder { color: #9ca3af; }
.en-campo input:hover { border-color: #9ca3af; }
.en-campo input:focus { border-color: #762fde; box-shadow: 0 0 0 4px rgba(118, 47, 222, .15); }
/* (lo que rellena el navegador, sin el fondo azul) */
.en-campo input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: #111827; }
.en-campo input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px #fff inset, 0 0 0 4px rgba(118, 47, 222, .15); }
.en-campo.con-ver input { padding-right: 52px; }
.en-ver { position: absolute; top: 50%; right: 6px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    transform: translateY(-50%); padding: 0; border: 0; border-radius: 8px; background: transparent; color: #6b7280; font-size: 16px; cursor: pointer; }
.en-ver:hover { background: #f3f4f6; color: #111827; }
.en-mayus { display: flex; align-items: center; gap: 7px; margin: -8px 0 16px; color: #b45309; font-size: 13px; font-weight: 600; }
.en-aviso { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 11px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; }
.en-aviso i { margin-top: 2px; }
.en-aviso.mal { border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.en-mayus[hidden], .en-aviso[hidden] { display: none; }
.en-boton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin: 4px 0 0; border: 0;
    border-radius: 11px; background: #762fde; box-shadow: 0 6px 16px rgba(118, 47, 222, .28); color: #fff; font-family: inherit;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; }
.en-boton:hover { background: #6425c4; box-shadow: 0 8px 20px rgba(118, 47, 222, .34); }
.en-boton:active { transform: translateY(1px); }
.en-boton:disabled { cursor: default; opacity: .9; }
.en-boton:focus-visible, .en-ver:focus-visible { outline: 3px solid rgba(118, 47, 222, .45); outline-offset: 2px; }
.en-ayuda { margin: 24px 0 0; color: #6b7280; font-size: 13.5px; line-height: 1.55; text-align: center; }
.en-ayuda b { color: #374151; font-weight: 600; }
.en-girando { display: inline-block; flex: none; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    border-radius: 50%; animation: en-girar .7s linear infinite; }
@keyframes en-girar { to { transform: rotate(360deg); } }
.en-caja.temblar { animation: en-temblar .35s; }
@keyframes en-temblar { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .en-caja.temblar { animation: none; } }

/* Pantallas medianas: la marca más estrecha */
@media (max-width: 1100px) {
    .en-marca { padding: 36px 36px; }
    .en-lema h2 { font-size: 32px; }
    .en-rombos { width: 360px; right: -120px; bottom: -130px; }
}
/* Móvil y tableta en vertical: solo el acceso, con el logo arriba */
@media (max-width: 860px) {
    .en-marco { grid-template-columns: minmax(0, 1fr); }
    .en-marca { display: none; }
    .en-acceso { align-items: flex-start; padding: 44px 22px 32px; }
    .en-logo-movil { display: block; width: auto; height: 34px; margin: 0 0 34px; }
    .en-caja h1 { font-size: 26px; }
    .en-sub { margin-bottom: 26px; }
}

/* Salir (logout.php): un momento con el logo mientras se cierra la sesión */
body.en-salir { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; min-height: 100vh; margin: 0;
    background: radial-gradient(circle at 50% 120%, rgba(224, 33, 59, .16), transparent 60%), #1f2937; color: #d1d5db;
    font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif; }
body.en-salir img { display: block; width: auto; height: 40px; }
body.en-salir p { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 16px; }
