/* Marco público de PMPEE; el formulario conserva los estilos de SICEP. */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f8f8f8;
}

.login-page .pmpee-container {
    width: 85%;
    max-width: 1320px;
    margin: 0 auto;
}

.pmpee-skip-link {
    position: absolute;
    top: 0;
    left: 1rem;
    transform: translateY(-120%);
    padding: 0.75rem;
    background: white;
    color: #004a98;
    z-index: 1100;
}

.pmpee-skip-link:focus { transform: translateY(0); }
.login-page a:focus-visible, .pmpee-menu-toggle:focus-visible {
    outline: 3px solid #00b2e3;
    outline-offset: 3px;
}

.pmpee-topbar { background: #d8d8d8; }
.pmpee-topbar .pmpee-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: #585858;
}
.pmpee-topbar a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #585858;
    text-decoration: none;
    font-size: 16px;
}
.pmpee-topbar img { width: 30px; height: 30px; object-fit: contain; }
.pmpee-header { background: #004a98; border-bottom: 10px solid #00b2e3; }
.pmpee-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 5px 0;
    min-height: 120px;
}
.pmpee-brand { display: flex; align-items: center; justify-content: center; flex: 0 1 auto; min-width: 0; }
.pmpee-brand a { display: block; min-width: 0; line-height: 0; }
.pmpee-brand img { display: block; max-width: 100%; height: 65px; box-sizing: content-box; padding: 10px 12px; object-fit: contain; }
.pmpee-brand > span { flex-shrink: 0; height: 80px; border-right: 2px solid white; }
.pmpee-profile-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px 0; }
.pmpee-profile-links a {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 10px;
    border-right: 2px solid white;
}
.pmpee-profile-links a:last-child { border-right: 0; padding-right: 0; }
.pmpee-profile-links a:hover, .pmpee-topbar a:hover { text-decoration: underline; }
.pmpee-navigation { background: white; border-bottom: 1px solid #e7ecf1; }
.pmpee-navigation ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 0;
    padding: 12px 0;
    list-style: none;
}
.pmpee-navigation a, .pmpee-navigation .pmpee-menu-pending {
    display: block;
    padding: 8px 4px;
    font-size: 18px;
    line-height: 1.4;
}
.pmpee-navigation a { color: #004a98; font-weight: 600; text-decoration: none; border-radius: 5px; }
.pmpee-navigation a:hover, .pmpee-navigation a[aria-current="page"] { background: #004a98; color: white; }
.pmpee-menu-pending { color: #666; }
.pmpee-menu-toggle { display: none; }

.login-page .sicep-access {
    flex: 1 0 auto;
    background: white;
    padding: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px);
}
.sicep-access-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.login-panel, .login-form-column, .sicep-access-info { min-width: 0; }
.login-form-column .card { text-align: left; }
.sicep-access-intro, .sicep-access-info { color: #4d4d4d; font-size: 17px; line-height: 1.6; }
.sicep-access-intro { margin-bottom: 32px; }
.sicep-access-intro h1 { font-size: clamp(23px, 2vw, 30px); color: #004a98; font-weight: 700; margin: 0 0 16px; }
.sicep-access-intro p { margin-bottom: 0; }
.sicep-info-section { border: 1px solid #d9dfe5; border-radius: 5px; margin-bottom: 24px; overflow: hidden; }
.sicep-info-section h2 { background: #e7ecf1; color: #004a98; font-size: clamp(20px, 1.8vw, 25px); font-weight: 700; margin: 0; padding: 18px 22px; border-bottom: 1px solid #d0d7df; }
.sicep-info-section > div { padding: 22px; }
.sicep-info-section p:last-child { margin-bottom: 0; }
.sicep-info-section:last-child { margin-bottom: 0; }

.pmpee-footer { background: #004a98; border-top: 10px solid #00b2e3; color: white; padding: 30px 0; }
.pmpee-footer-content { display: flex; justify-content: space-between; align-items: center; gap: 32px; font-size: 16px; line-height: 1.6; }
.pmpee-contact { max-width: 65%; }
.pmpee-footer p { margin: 0; }
.pmpee-footer a { color: white; text-decoration: none; font-weight: 600; }
.pmpee-footer a:hover { text-decoration: underline; }
.pmpee-footer ul { list-style: none; padding: 0; margin: 0; }
.pmpee-footer li { padding: 2px 0; }
.pmpee-footer .pmpee-menu-pending { color: #d7e2ed; }
.pmpee-social-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 15px; }
.pmpee-social-links a { display: inline-flex; align-items: center; gap: 8px; }
.pmpee-social-links img, .pmpee-social-links svg { width: 22px; height: 22px; flex-shrink: 0; }

@media (min-width: 988px) {
    .pmpee-menu-collapse.collapse { display: block; }
}

@media (max-width: 987px) {
    .login-page .pmpee-container { width: 94%; }
    .pmpee-header-content { flex-direction: column; gap: 16px; padding: 15px 0 22px; }
    .pmpee-brand { flex: none; max-width: 100%; }
    .pmpee-brand img { height: 60px; padding: 10px 8px; }
    .pmpee-profile-links { justify-content: center; }
    .pmpee-menu-toggle { display: block; margin-left: auto; padding: 12px; border: 0; background: white; color: #004a98; font-size: 18px; font-weight: 600; }
    .pmpee-menu-toggle span { color: #007eaa; margin-right: 8px; }
    .pmpee-navigation ul { display: block; padding-top: 0; }
    .sicep-access-grid { grid-template-columns: minmax(0, 1fr); }
    .login-form-column { max-width: 560px; }
}

@media (max-width: 575px) {
    .pmpee-brand img { height: clamp(32px, 10vw, 60px); padding: 10px 6px; }
    .pmpee-brand > span { height: 54px; }
    .pmpee-profile-links a { border: 0; padding: 0 8px; }
    .pmpee-footer-content { flex-direction: column; align-items: flex-start; }
    .pmpee-contact { max-width: 100%; }
    .sicep-access-intro, .sicep-access-info { font-size: 16px; }
    .sicep-info-section h2, .sicep-info-section > div { padding: 16px; }
}

/* Marco compartido por acceso y verificación de documentos. */
.pmpee-header { position: sticky; top: 0; z-index: 1000; }
/* Escudos y nombre del sistema permanecen juntos y alineados a la izquierda. */
.pmpee-brand { justify-content: flex-start; }
.pmpee-brand .sicep-wordmark { color: white; font-size: clamp(22px, 3vw, 30px); font-weight: 700; line-height: 1.2; padding: 10px 16px; white-space: nowrap; }
@media (max-width: 987px) {
    .pmpee-header-content { align-items: flex-start; }
    .pmpee-profile-links { justify-content: flex-start; }
}
@media (max-width: 575px) {
    .pmpee-brand .sicep-wordmark { font-size: 22px; padding: 10px; }
}

/* Acceso único compartido por login y consulta de oficios. */
.pmpee-navigation .pmpee-container { padding: 12px 0; }
.pmpee-navigation a { display: inline-block; padding: 6px 12px; }

/* El texto compacto aparece únicamente después de desplazarse. */
.sicep-compact { display: none; align-items: center; min-height: 100px; color: white; font-size: 36px; line-height: normal; font-weight: 700; padding: 0; }
.pmpee-header.is-compact .pmpee-header-content { display: none; }
.pmpee-header.is-compact .sicep-compact { display: flex; }
@media (max-width: 580px) {
    .sicep-compact { font-size: 30px; }
}
