/* Páginas de cuentas. Acceso (entrar, recuperar, nueva contraseña, solicitud): tarjeta blanca con el logo sobre un
   fondo claro con dos formas suaves. Mismos colores que el portal de incidencias. */
@font-face { font-family: "Lexend Deca"; src: url("fuentes/lexend-deca.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
.acceso, .pagina-cuenta {
	--c-marino: #063653;
	--c-accion: #07518A;
	--c-accion-hover: #063F6C;
	--c-fondo: #F5F8FC;
	--c-borde: #E1E8F0;
	--c-borde-fuerte: #CBD6E2;
	--c-texto: #102D49;
	--c-secundario: #5D6C82;
	--c-tenue: #75849A;
	--c-anillo: 0 0 0 3px rgba(7, 81, 138, .18);
}
.acceso { position: relative; margin: 0; min-height: 100vh; overflow-x: hidden; background: var(--c-fondo); color: var(--c-secundario); font-family: "Lexend Deca", system-ui, sans-serif; font-size: 15px; line-height: 1.5; }
.acceso *, .acceso *::before, .acceso *::after { box-sizing: border-box; }
.acceso .icono { flex: none; fill: currentColor; } /* esta página no carga estilos.css */
/* Formas de fondo: dos cuadrados redondeados girados, muy suaves */
.acceso::before, .acceso::after { content: ""; position: fixed; z-index: 0; border-radius: 64px; background: linear-gradient(135deg, #E3EDF8, #EEF4FB); transform: rotate(45deg); pointer-events: none; }
.acceso::before { top: -180px; right: -160px; width: 520px; height: 520px; }
.acceso::after { bottom: -260px; right: 6%; width: 420px; height: 420px; opacity: .8; }
.acceso-contenido { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 48px 16px; }
.acceso-tarjeta { width: 100%; max-width: 440px; padding: 40px 40px 32px; border: 1px solid rgba(225, 232, 240, .8); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 45, 73, .04), 0 16px 48px rgba(16, 45, 73, .08); }
.acceso-logo { display: inline-block; margin-bottom: 24px; }
.acceso-logo img { display: block; width: 150px; height: auto; }
.acceso-tarjeta h1 { margin: 0; color: var(--c-texto); font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.acceso-intro { margin: 8px 0 0; color: var(--c-secundario); font-size: 14px; }
.acceso-tarjeta form { margin-top: 24px; }
.acceso-tarjeta p { margin: 0 0 16px; }

/* ===== Campos (acceso y Mi cuenta) ===== */
.campo { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.campo label { color: var(--c-texto); font-size: 14px; font-weight: 500; }
.campo-control { position: relative; display: flex; align-items: center; }
.campo-control input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--c-borde-fuerte); border-radius: 10px; background: #fff; color: var(--c-texto); font: inherit; font-size: 15px; transition: border-color .16s ease, box-shadow .16s ease; }
.campo-control--icono input { padding-left: 40px; }
.campo-control:has(.ver-clave:not([hidden])) input { padding-right: 44px; }
.campo-control input::placeholder { color: var(--c-tenue); opacity: 1; }
.campo-control input:hover { border-color: var(--c-tenue); }
.campo-control input:focus { outline: none; border-color: var(--c-accion); box-shadow: var(--c-anillo); }
.campo-icono { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--c-tenue); pointer-events: none; transition: color .16s ease; }
.campo-control:focus-within .campo-icono { color: var(--c-accion); }
.ver-clave { position: absolute; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--c-tenue); cursor: pointer; transition: color .16s ease, background-color .16s ease; }
.ver-clave .icono { width: 20px; height: 20px; fill: none; } /* el ojo es de trazo, sin relleno */
.ver-clave:hover { background: var(--c-fondo); color: var(--c-accion); }
.ver-clave:focus-visible { outline: none; box-shadow: var(--c-anillo); }
.ver-clave[aria-pressed="true"] .ojo-tachado { display: none; }
.campo small, .opcional { color: var(--c-secundario); font-size: 13px; font-weight: 400; }
.campo-fijo { padding: 10px 0; color: var(--c-secundario); }
.campo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Botón principal y enlaces ===== */
.acceso-boton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 24px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--c-accion); color: #fff; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 1px 2px rgba(7, 81, 138, .2); transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.acceso-boton .icono { width: 20px; height: 20px; transition: transform .16s ease; }
.acceso-boton:hover { background: var(--c-accion-hover); color: #fff; box-shadow: 0 6px 16px rgba(7, 81, 138, .25); }
.acceso-boton:hover .icono { transform: translateX(3px); }
.acceso-boton:active { transform: translateY(1px); }
.acceso-boton:focus-visible { outline: none; box-shadow: var(--c-anillo); }
.acceso a:focus-visible { outline: 2px solid var(--c-accion); outline-offset: 2px; border-radius: 4px; }
.acceso-enlaces { display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 20px; font-size: 13px; text-align: center; }
.acceso-enlaces > a { color: var(--c-accion); text-decoration: underline; text-underline-offset: 3px; }
.acceso-enlaces > a:hover { color: var(--c-marino); }
.acceso-registro { width: 100%; margin: 20px 0 0 !important; padding-top: 20px; border-top: 1px solid var(--c-borde); color: var(--c-texto); }
.acceso-registro a { color: var(--c-texto); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.acceso-registro a:hover { color: var(--c-accion); }

/* ===== Avisos ===== */
.aviso-error, .aviso-ok { margin: 16px 0 0; padding: 12px 16px; border: 1px solid; border-radius: 12px; font-size: 14px; }
.aviso-error { border-color: #F5C2BD; background: #FEF3F2; color: #912018; }
.aviso-ok { border-color: #CBE0F5; background: #EEF5FC; color: var(--c-marino); }
.acceso-tarjeta .aviso-ok + .acceso-boton, .acceso-tarjeta .aviso-error + .acceso-boton { margin-top: 24px; }

/* ===== Mi cuenta (dentro de la plantilla general) ===== */
.cuenta { padding-top: 32px; padding-bottom: 56px; }
.cuenta-cabecera { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.cuenta-cabecera strong { display: block; color: var(--c-texto); font-size: 20px; }
.cuenta-cabecera span { color: var(--c-secundario); }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--c-accion, #07518A); color: #fff !important; font-size: 22px; font-weight: 600; }
/* min(): en pantallas de menos de 320 px más los márgenes, una columna que cabe (si no, la página se sale a lo ancho) */
.cuenta-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; align-items: start; }
#clave { scroll-margin-top: 24px; }
.campo-etiqueta { color: var(--c-texto); font-size: 14px; font-weight: 500; } /* como .campo label, para un dato que no se edita */
.cuenta-panel { padding: 24px; border: 1px solid var(--c-borde); border-radius: 16px; background: #fff; }
.cuenta-panel h2 { margin: 0 0 20px; color: var(--c-texto); font-size: 20px; font-weight: 600; }
.cuenta-panel .boton-dorado { border: 0; font: inherit; cursor: pointer; }
.cuenta .aviso-ok, .cuenta .aviso-error { margin: 0 0 24px; }
.cuenta-salir { margin-top: 32px; }
.cuenta-salir button { padding: 0; border: 0; background: none; color: var(--c-accion); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ===== Móvil ===== */
@media (max-width: 520px) {
	.acceso-contenido { justify-content: flex-start; padding: 24px 12px; }
	.acceso-tarjeta { padding: 28px 20px 24px; border-radius: 16px; }
	.acceso::before { top: -260px; right: -260px; }
	.acceso::after { display: none; }
}

/* ===== Movimiento: la tarjeta entra suave (esta página no carga estilos.css) ===== */
@keyframes acceso-entrar { from { opacity: 0; transform: translateY(12px); } }
.acceso-tarjeta { animation: acceso-entrar .4s ease-out backwards; }
@media (prefers-reduced-motion: reduce) { .acceso-tarjeta, .acceso-tarjeta * { animation: none !important; transition: none !important; } }

/* Aviso bajo un campo que no se puede enviar (publico/validacion.js, en lugar del globo del navegador). !important:
   el borde rojo tiene que ganar a los de :hover y :focus de cada formulario. */
.campo-error { display: flex; align-items: flex-start; gap: 6px; margin: 6px 0 0; color: #B42318; font-size: 13px; font-weight: 500; line-height: 1.4; text-align: left; animation: campo-error-entrar .16s ease-out; }
.campo-error::before { content: "!"; display: grid; place-items: center; flex: none; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #B42318; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.campo > .campo-error { margin-top: 0; }
:is(input, select, textarea)[aria-invalid="true"] { border-color: #B42318 !important; }
:is(input, select, textarea)[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15) !important; }
@keyframes campo-error-entrar { from { opacity: 0; transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .campo-error { animation: none; } }
